home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-15 | 21.1 KB |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 5e d1 02 2f 2f 3d 3d 3d |........|^..//===|
|00000010| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000020| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000030| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0a 2f 2f 20 43 |========|==..// C|
|00000060| 54 46 47 61 6d 65 2e 0d | 0a 2f 2f 3d 3d 3d 3d 3d |TFGame..|.//=====|
|00000070| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000000b0| 3d 3d 3d 3d 3d 3d 3d 3d | 0d 0a 63 6c 61 73 73 20 |========|..class |
|000000c0| 43 54 46 47 61 6d 65 20 | 65 78 74 65 6e 64 73 20 |CTFGame |extends |
|000000d0| 54 65 61 6d 47 61 6d 65 | 50 6c 75 73 0d 0a 09 63 |TeamGame|Plus...c|
|000000e0| 6f 6e 66 69 67 3b 0d 0a | 0d 0a 23 65 78 65 63 20 |onfig;..|..#exec |
|000000f0| 41 55 44 49 4f 20 49 4d | 50 4f 52 54 20 46 49 4c |AUDIO IM|PORT FIL|
|00000100| 45 3d 22 53 6f 75 6e 64 | 73 5c 43 54 46 5c 52 6f |E="Sound|s\CTF\Ro|
|00000110| 63 6b 4f 6e 44 75 64 65 | 2e 77 61 76 22 20 4e 41 |ckOnDude|.wav" NA|
|00000120| 4d 45 3d 22 43 61 70 74 | 75 72 65 53 6f 75 6e 64 |ME="Capt|ureSound|
|00000130| 22 20 47 52 4f 55 50 3d | 22 43 54 46 22 0d 0a 23 |" GROUP=|"CTF"..#|
|00000140| 65 78 65 63 20 41 55 44 | 49 4f 20 49 4d 50 4f 52 |exec AUD|IO IMPOR|
|00000150| 54 20 46 49 4c 45 3d 22 | 53 6f 75 6e 64 73 5c 43 |T FILE="|Sounds\C|
|00000160| 54 46 5c 63 74 66 39 2e | 77 61 76 22 20 4e 41 4d |TF\ctf9.|wav" NAM|
|00000170| 45 3d 22 43 61 70 74 75 | 72 65 53 6f 75 6e 64 32 |E="Captu|reSound2|
|00000180| 22 20 47 52 4f 55 50 3d | 22 43 54 46 22 0d 0a 23 |" GROUP=|"CTF"..#|
|00000190| 65 78 65 63 20 41 55 44 | 49 4f 20 49 4d 50 4f 52 |exec AUD|IO IMPOR|
|000001a0| 54 20 46 49 4c 45 3d 22 | 53 6f 75 6e 64 73 5c 43 |T FILE="|Sounds\C|
|000001b0| 54 46 5c 63 74 66 31 30 | 2e 77 61 76 22 20 4e 41 |TF\ctf10|.wav" NA|
|000001c0| 4d 45 3d 22 43 61 70 74 | 75 72 65 53 6f 75 6e 64 |ME="Capt|ureSound|
|000001d0| 33 22 20 47 52 4f 55 50 | 3d 22 43 54 46 22 0d 0a |3" GROUP|="CTF"..|
|000001e0| 23 65 78 65 63 20 41 55 | 44 49 4f 20 49 4d 50 4f |#exec AU|DIO IMPO|
|000001f0| 52 54 20 46 49 4c 45 3d | 22 53 6f 75 6e 64 73 5c |RT FILE=|"Sounds\|
|00000200| 43 54 46 5c 72 65 74 75 | 72 6e 66 31 2e 77 61 76 |CTF\retu|rnf1.wav|
|00000210| 22 20 4e 41 4d 45 3d 22 | 52 65 74 75 72 6e 53 6f |" NAME="|ReturnSo|
|00000220| 75 6e 64 22 20 47 52 4f | 55 50 3d 22 43 54 46 22 |und" GRO|UP="CTF"|
|00000230| 0d 0a 0d 0a 76 61 72 09 | 20 20 69 6e 74 20 20 20 |....var.| int |
|00000240| 47 72 6f 77 54 69 6d 65 | 72 3b 0d 0a 76 61 72 28 |GrowTime|r;..var(|
|00000250| 29 20 73 6f 75 6e 64 20 | 43 61 70 74 75 72 65 53 |) sound |CaptureS|
|00000260| 6f 75 6e 64 5b 34 5d 3b | 0d 0a 76 61 72 28 29 20 |ound[4];|..var() |
|00000270| 73 6f 75 6e 64 20 52 65 | 74 75 72 6e 53 6f 75 6e |sound Re|turnSoun|
|00000280| 64 3b 0d 0a 76 61 72 20 | 66 6c 6f 61 74 20 4c 61 |d;..var |float La|
|00000290| 73 74 47 6f 74 46 6c 61 | 67 3b 0d 0a 76 61 72 20 |stGotFla|g;..var |
|000002a0| 66 6c 6f 61 74 20 4c 61 | 73 74 53 65 65 46 6c 61 |float La|stSeeFla|
|000002b0| 67 43 61 72 72 69 65 72 | 3b 0d 0a 0d 0a 66 75 6e |gCarrier|;....fun|
|000002c0| 63 74 69 6f 6e 20 4c 6f | 67 6f 75 74 28 70 61 77 |ction Lo|gout(paw|
|000002d0| 6e 20 45 78 69 74 69 6e | 67 29 0d 0a 7b 0d 0a 09 |n Exitin|g)..{...|
|000002e0| 69 66 20 28 20 45 78 69 | 74 69 6e 67 2e 50 6c 61 |if ( Exi|ting.Pla|
|000002f0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000300| 66 6f 2e 48 61 73 46 6c | 61 67 20 21 3d 20 4e 6f |fo.HasFl|ag != No|
|00000310| 6e 65 20 29 0d 0a 09 09 | 43 54 46 46 6c 61 67 28 |ne )....|CTFFlag(|
|00000320| 45 78 69 74 69 6e 67 2e | 50 6c 61 79 65 72 52 65 |Exiting.|PlayerRe|
|00000330| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 48 61 |plicatio|nInfo.Ha|
|00000340| 73 46 6c 61 67 29 2e 53 | 65 6e 64 48 6f 6d 65 28 |sFlag).S|endHome(|
|00000350| 29 3b 09 0d 0a 09 53 75 | 70 65 72 2e 4c 6f 67 6f |);....Su|per.Logo|
|00000360| 75 74 28 45 78 69 74 69 | 6e 67 29 3b 0d 0a 7d 0d |ut(Exiti|ng);..}.|
|00000370| 0a 0d 0a 65 76 65 6e 74 | 20 49 6e 69 74 47 61 6d |...event| InitGam|
|00000380| 65 28 20 73 74 72 69 6e | 67 20 4f 70 74 69 6f 6e |e( strin|g Option|
|00000390| 73 2c 20 6f 75 74 20 73 | 74 72 69 6e 67 20 45 72 |s, out s|tring Er|
|000003a0| 72 6f 72 20 29 0d 0a 7b | 0d 0a 09 53 75 70 65 72 |ror )..{|...Super|
|000003b0| 2e 49 6e 69 74 47 61 6d | 65 28 4f 70 74 69 6f 6e |.InitGam|e(Option|
|000003c0| 73 2c 20 45 72 72 6f 72 | 29 3b 0d 0a 09 69 66 20 |s, Error|);...if |
|000003d0| 28 20 62 52 61 74 65 64 | 47 61 6d 65 20 29 0d 0a |( bRated|Game )..|
|000003e0| 09 09 47 6f 61 6c 54 65 | 61 6d 53 63 6f 72 65 20 |..GoalTe|amScore |
|000003f0| 3d 20 35 3b 0d 0a 0d 0a | 09 46 72 61 67 4c 69 6d |= 5;....|.FragLim|
|00000400| 69 74 20 3d 20 30 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |it = 0;.|.}....fu|
|00000410| 6e 63 74 69 6f 6e 20 53 | 63 6f 72 65 4b 69 6c 6c |nction S|coreKill|
|00000420| 28 70 61 77 6e 20 4b 69 | 6c 6c 65 72 2c 20 70 61 |(pawn Ki|ller, pa|
|00000430| 77 6e 20 4f 74 68 65 72 | 29 0d 0a 7b 0d 0a 09 6c |wn Other|)..{...l|
|00000440| 6f 63 61 6c 20 69 6e 74 | 20 4e 65 78 74 54 61 75 |ocal int| NextTau|
|00000450| 6e 74 2c 20 69 3b 0d 0a | 09 6c 6f 63 61 6c 20 62 |nt, i;..|.local b|
|00000460| 6f 6f 6c 20 62 41 75 74 | 6f 54 61 75 6e 74 3b 0d |ool bAut|oTaunt;.|
|00000470| 0a 0d 0a 09 69 66 28 20 | 28 6b 69 6c 6c 65 72 20 |....if( |(killer |
|00000480| 3d 3d 20 4f 74 68 65 72 | 29 20 7c 7c 20 28 6b 69 |== Other|) || (ki|
|00000490| 6c 6c 65 72 20 3d 3d 20 | 4e 6f 6e 65 29 20 29 0d |ller == |None) ).|
|000004a0| 0a 09 09 4f 74 68 65 72 | 2e 50 6c 61 79 65 72 52 |...Other|.PlayerR|
|000004b0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 53 |eplicati|onInfo.S|
|000004c0| 63 6f 72 65 20 2d 3d 20 | 31 3b 0d 0a 09 65 6c 73 |core -= |1;...els|
|000004d0| 65 20 69 66 20 28 20 6b | 69 6c 6c 65 72 20 21 3d |e if ( k|iller !=|
|000004e0| 20 4e 6f 6e 65 20 29 0d | 0a 09 7b 0d 0a 09 09 6b | None ).|..{....k|
|000004f0| 69 6c 6c 65 72 2e 6b 69 | 6c 6c 43 6f 75 6e 74 2b |iller.ki|llCount+|
|00000500| 2b 3b 0d 0a 09 09 69 66 | 20 28 20 4b 69 6c 6c 65 |+;....if| ( Kille|
|00000510| 72 2e 62 49 73 50 6c 61 | 79 65 72 20 26 26 20 4f |r.bIsPla|yer && O|
|00000520| 74 68 65 72 2e 62 49 73 | 50 6c 61 79 65 72 20 26 |ther.bIs|Player &|
|00000530| 26 20 28 4b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |& (Kille|r.Player|
|00000540| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000550| 54 65 61 6d 20 21 3d 20 | 4f 74 68 65 72 2e 50 6c |Team != |Other.Pl|
|00000560| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00000570| 6e 66 6f 2e 54 65 61 6d | 29 20 29 0d 0a 09 09 09 |nfo.Team|) ).....|
|00000580| 4b 69 6c 6c 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Killer.P|layerRep|
|00000590| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|000005a0| 72 65 20 2b 3d 20 31 3b | 0d 0a 09 7d 0d 0a 09 69 |re += 1;|...}...i|
|000005b0| 66 20 28 20 62 41 6c 74 | 53 63 6f 72 69 6e 67 20 |f ( bAlt|Scoring |
|000005c0| 26 26 20 28 4b 69 6c 6c | 65 72 20 21 3d 20 4f 74 |&& (Kill|er != Ot|
|000005d0| 68 65 72 29 20 26 26 20 | 28 6b 69 6c 6c 65 72 20 |her) && |(killer |
|000005e0| 21 3d 20 4e 6f 6e 65 29 | 20 26 26 20 4f 74 68 65 |!= None)| && Othe|
|000005f0| 72 2e 62 49 73 50 6c 61 | 79 65 72 20 29 0d 0a 09 |r.bIsPla|yer )...|
|00000600| 09 4f 74 68 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |.Other.P|layerRep|
|00000610| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 53 63 6f |lication|Info.Sco|
|00000620| 72 65 20 2d 3d 20 31 3b | 0d 0a 0d 0a 09 4f 74 68 |re -= 1;|.....Oth|
|00000630| 65 72 2e 44 69 65 43 6f | 75 6e 74 2b 2b 3b 0d 0a |er.DieCo|unt++;..|
|00000640| 09 69 66 20 28 20 4f 74 | 68 65 72 2e 62 49 73 50 |.if ( Ot|her.bIsP|
|00000650| 6c 61 79 65 72 20 26 26 | 20 28 4f 74 68 65 72 2e |layer &&| (Other.|
|00000660| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000670| 6e 49 6e 66 6f 2e 48 61 | 73 46 6c 61 67 20 21 3d |nInfo.Ha|sFlag !=|
|00000680| 20 4e 6f 6e 65 29 20 29 | 0d 0a 09 7b 0d 0a 09 09 | None) )|...{....|
|00000690| 69 66 20 28 20 28 4b 69 | 6c 6c 65 72 20 21 3d 20 |if ( (Ki|ller != |
|000006a0| 4e 6f 6e 65 29 20 26 26 | 20 4b 69 6c 6c 65 72 2e |None) &&| Killer.|
|000006b0| 62 49 73 50 6c 61 79 65 | 72 20 26 26 20 4f 74 68 |bIsPlaye|r && Oth|
|000006c0| 65 72 2e 62 49 73 50 6c | 61 79 65 72 20 26 26 20 |er.bIsPl|ayer && |
|000006d0| 28 4b 69 6c 6c 65 72 2e | 50 6c 61 79 65 72 52 65 |(Killer.|PlayerRe|
|000006e0| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 54 65 |plicatio|nInfo.Te|
|000006f0| 61 6d 20 21 3d 20 4f 74 | 68 65 72 2e 50 6c 61 79 |am != Ot|her.Play|
|00000700| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00000710| 6f 2e 54 65 61 6d 29 20 | 29 0d 0a 09 09 7b 0d 0a |o.Team) |)....{..|
|00000720| 09 09 09 6b 69 6c 6c 65 | 72 2e 50 6c 61 79 65 72 |...kille|r.Player|
|00000730| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00000740| 53 63 6f 72 65 20 2b 3d | 20 34 3b 0d 0a 09 09 09 |Score +=| 4;.....|
|00000750| 62 41 75 74 6f 54 61 75 | 6e 74 20 3d 20 28 28 54 |bAutoTau|nt = ((T|
|00000760| 6f 75 72 6e 61 6d 65 6e | 74 50 6c 61 79 65 72 28 |ournamen|tPlayer(|
|00000770| 4b 69 6c 6c 65 72 29 20 | 21 3d 20 4e 6f 6e 65 29 |Killer) |!= None)|
|00000780| 20 26 26 20 54 6f 75 72 | 6e 61 6d 65 6e 74 50 6c | && Tour|namentPl|
|00000790| 61 79 65 72 28 4b 69 6c | 6c 65 72 29 2e 62 41 75 |ayer(Kil|ler).bAu|
|000007a0| 74 6f 54 61 75 6e 74 29 | 3b 0d 0a 09 09 09 69 66 |toTaunt)|;.....if|
|000007b0| 20 28 20 28 42 6f 74 28 | 4b 69 6c 6c 65 72 29 20 | ( (Bot(|Killer) |
|000007c0| 21 3d 20 4e 6f 6e 65 29 | 20 7c 7c 20 62 41 75 74 |!= None)| || bAut|
|000007d0| 6f 54 61 75 6e 74 20 29 | 0d 0a 09 09 09 7b 0d 0a |oTaunt )|.....{..|
|000007e0| 09 09 09 09 4e 65 78 74 | 54 61 75 6e 74 20 3d 20 |....Next|Taunt = |
|000007f0| 52 61 6e 64 28 63 6c 61 | 73 73 3c 43 68 61 6c 6c |Rand(cla|ss<Chall|
|00000800| 65 6e 67 65 56 6f 69 63 | 65 50 61 63 6b 3e 28 4b |engeVoic|ePack>(K|
|00000810| 69 6c 6c 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |iller.Pl|ayerRepl|
|00000820| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 56 6f 69 63 |icationI|nfo.Voic|
|00000830| 65 54 79 70 65 29 2e 44 | 65 66 61 75 6c 74 2e 4e |eType).D|efault.N|
|00000840| 75 6d 54 61 75 6e 74 73 | 29 3b 0d 0a 09 09 09 09 |umTaunts|);......|
|00000850| 66 6f 72 20 28 20 69 3d | 30 3b 20 69 3c 34 3b 20 |for ( i=|0; i<4; |
|00000860| 69 2b 2b 20 29 0d 0a 09 | 09 09 09 7b 0d 0a 09 09 |i++ )...|...{....|
|00000870| 09 09 09 69 66 20 28 20 | 4e 65 78 74 54 61 75 6e |...if ( |NextTaun|
|00000880| 74 20 3d 3d 20 4c 61 73 | 74 54 61 75 6e 74 5b 69 |t == Las|tTaunt[i|
|00000890| 5d 20 29 0d 0a 09 09 09 | 09 09 09 4e 65 78 74 54 |] ).....|...NextT|
|000008a0| 61 75 6e 74 20 3d 20 52 | 61 6e 64 28 63 6c 61 73 |aunt = R|and(clas|
|000008b0| 73 3c 43 68 61 6c 6c 65 | 6e 67 65 56 6f 69 63 65 |s<Challe|ngeVoice|
|000008c0| 50 61 63 6b 3e 28 4b 69 | 6c 6c 65 72 2e 50 6c 61 |Pack>(Ki|ller.Pla|
|000008d0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000008e0| 66 6f 2e 56 6f 69 63 65 | 54 79 70 65 29 2e 44 65 |fo.Voice|Type).De|
|000008f0| 66 61 75 6c 74 2e 4e 75 | 6d 54 61 75 6e 74 73 29 |fault.Nu|mTaunts)|
|00000900| 3b 0d 0a 09 09 09 09 09 | 69 66 20 28 20 69 20 3e |;.......|if ( i >|
|00000910| 20 30 20 29 0d 0a 09 09 | 09 09 09 09 4c 61 73 74 | 0 )....|....Last|
|00000920| 54 61 75 6e 74 5b 69 2d | 31 5d 20 3d 20 4c 61 73 |Taunt[i-|1] = Las|
|00000930| 74 54 61 75 6e 74 5b 69 | 5d 3b 0d 0a 09 09 09 09 |tTaunt[i|];......|
|00000940| 7d 09 0d 0a 09 09 09 09 | 4c 61 73 74 54 61 75 6e |}.......|LastTaun|
|00000950| 74 5b 33 5d 20 3d 20 4e | 65 78 74 54 61 75 6e 74 |t[3] = N|extTaunt|
|00000960| 3b 0d 0a 09 09 09 09 69 | 66 20 28 20 62 41 75 74 |;......i|f ( bAut|
|00000970| 6f 54 61 75 6e 74 20 29 | 0d 0a 09 09 09 09 09 6b |oTaunt )|.......k|
|00000980| 69 6c 6c 65 72 2e 53 65 | 6e 64 47 6c 6f 62 61 6c |iller.Se|ndGlobal|
|00000990| 4d 65 73 73 61 67 65 28 | 4e 6f 6e 65 2c 20 27 41 |Message(|None, 'A|
|000009a0| 55 54 4f 54 41 55 4e 54 | 27 2c 20 4e 65 78 74 54 |UTOTAUNT|', NextT|
|000009b0| 61 75 6e 74 2c 20 35 29 | 3b 0d 0a 09 09 09 09 65 |aunt, 5)|;......e|
|000009c0| 6c 73 65 0d 0a 09 09 09 | 09 09 6b 69 6c 6c 65 72 |lse.....|..killer|
|000009d0| 2e 53 65 6e 64 47 6c 6f | 62 61 6c 4d 65 73 73 61 |.SendGlo|balMessa|
|000009e0| 67 65 28 4e 6f 6e 65 2c | 20 27 54 41 55 4e 54 27 |ge(None,| 'TAUNT'|
|000009f0| 2c 20 4e 65 78 74 54 61 | 75 6e 74 2c 20 35 29 3b |, NextTa|unt, 5);|
|00000a00| 0d 0a 09 09 09 7d 0d 0a | 09 09 7d 0d 0a 09 09 43 |.....}..|..}....C|
|00000a10| 54 46 46 6c 61 67 28 4f | 74 68 65 72 2e 50 6c 61 |TFFlag(O|ther.Pla|
|00000a20| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00000a30| 66 6f 2e 48 61 73 46 6c | 61 67 29 2e 44 72 6f 70 |fo.HasFl|ag).Drop|
|00000a40| 28 30 2e 35 20 2a 20 4f | 74 68 65 72 2e 56 65 6c |(0.5 * O|ther.Vel|
|00000a50| 6f 63 69 74 79 29 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |ocity);.|..}.....|
|00000a60| 42 61 73 65 4d 75 74 61 | 74 6f 72 2e 53 63 6f 72 |BaseMuta|tor.Scor|
|00000a70| 65 4b 69 6c 6c 28 4b 69 | 6c 6c 65 72 2c 20 4f 74 |eKill(Ki|ller, Ot|
|00000a80| 68 65 72 29 3b 0d 0a 7d | 09 0d 0a 0d 0a 66 75 6e |her);..}|.....fun|
|00000a90| 63 74 69 6f 6e 20 62 6f | 6f 6c 20 53 65 74 45 6e |ction bo|ol SetEn|
|00000aa0| 64 43 61 6d 73 28 73 74 | 72 69 6e 67 20 52 65 61 |dCams(st|ring Rea|
|00000ab0| 73 6f 6e 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |son)..{.|..local |
|00000ac0| 54 65 61 6d 49 6e 66 6f | 20 42 65 73 74 3b 0d 0a |TeamInfo| Best;..|
|00000ad0| 09 6c 6f 63 61 6c 20 46 | 6c 61 67 42 61 73 65 20 |.local F|lagBase |
|00000ae0| 42 65 73 74 42 61 73 65 | 3b 0d 0a 09 6c 6f 63 61 |BestBase|;...loca|
|00000af0| 6c 20 43 54 46 46 6c 61 | 67 20 42 65 73 74 46 6c |l CTFFla|g BestFl|
|00000b00| 61 67 3b 0d 0a 09 6c 6f | 63 61 6c 20 50 61 77 6e |ag;...lo|cal Pawn|
|00000b10| 20 50 3b 0d 0a 09 6c 6f | 63 61 6c 20 69 6e 74 20 | P;...lo|cal int |
|00000b20| 69 3b 0d 0a 09 6c 6f 63 | 61 6c 20 50 6c 61 79 65 |i;...loc|al Playe|
|00000b30| 72 50 61 77 6e 20 50 6c | 61 79 65 72 3b 0d 0a 0d |rPawn Pl|ayer;...|
|00000b40| 0a 09 66 6f 72 20 28 20 | 69 3d 30 3b 20 69 3c 4d |..for ( |i=0; i<M|
|00000b50| 61 78 54 65 61 6d 73 3b | 20 69 2b 2b 20 29 0d 0a |axTeams;| i++ )..|
|00000b60| 09 09 69 66 20 28 20 28 | 42 65 73 74 20 3d 3d 20 |..if ( (|Best == |
|00000b70| 4e 6f 6e 65 29 20 7c 7c | 20 28 42 65 73 74 2e 53 |None) ||| (Best.S|
|00000b80| 63 6f 72 65 20 3c 20 54 | 65 61 6d 73 5b 69 5d 2e |core < T|eams[i].|
|00000b90| 53 63 6f 72 65 29 20 29 | 0d 0a 09 09 09 42 65 73 |Score) )|.....Bes|
|00000ba0| 74 20 3d 20 54 65 61 6d | 73 5b 69 5d 3b 0d 0a 0d |t = Team|s[i];...|
|00000bb0| 0a 09 66 6f 72 20 28 20 | 69 3d 30 3b 20 69 3c 4d |..for ( |i=0; i<M|
|00000bc0| 61 78 54 65 61 6d 73 3b | 20 69 2b 2b 20 29 0d 0a |axTeams;| i++ )..|
|00000bd0| 09 09 69 66 20 28 20 28 | 42 65 73 74 2e 54 65 61 |..if ( (|Best.Tea|
|00000be0| 6d 49 6e 64 65 78 20 21 | 3d 20 69 29 20 26 26 20 |mIndex !|= i) && |
|00000bf0| 28 42 65 73 74 2e 53 63 | 6f 72 65 20 3d 3d 20 54 |(Best.Sc|ore == T|
|00000c00| 65 61 6d 73 5b 69 5d 2e | 53 63 6f 72 65 29 20 29 |eams[i].|Score) )|
|00000c10| 0d 0a 09 09 7b 0d 0a 09 | 09 09 42 72 6f 61 64 63 |....{...|..Broadc|
|00000c20| 61 73 74 4c 6f 63 61 6c | 69 7a 65 64 4d 65 73 73 |astLocal|izedMess|
|00000c30| 61 67 65 28 63 6c 61 73 | 73 27 44 65 61 74 68 4d |age(clas|s'DeathM|
|00000c40| 61 74 63 68 4d 65 73 73 | 61 67 65 27 2c 20 30 29 |atchMess|age', 0)|
|00000c50| 3b 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 66 61 6c |;.....re|turn fal|
|00000c60| 73 65 3b 0d 0a 09 09 7d | 09 09 0d 0a 0d 0a 09 2f |se;....}|......./|
|00000c70| 2f 20 66 69 6e 64 20 77 | 69 6e 6e 65 72 0d 0a 09 |/ find w|inner...|
|00000c80| 46 6f 72 45 61 63 68 20 | 41 6c 6c 41 63 74 6f 72 |ForEach |AllActor|
|00000c90| 73 28 63 6c 61 73 73 27 | 43 54 46 46 6c 61 67 27 |s(class'|CTFFlag'|
|00000ca0| 2c 20 42 65 73 74 46 6c | 61 67 29 0d 0a 09 09 69 |, BestFl|ag)....i|
|00000cb0| 66 20 28 20 42 65 73 74 | 46 6c 61 67 2e 54 65 61 |f ( Best|Flag.Tea|
|00000cc0| 6d 20 3d 3d 20 42 65 73 | 74 2e 54 65 61 6d 49 6e |m == Bes|t.TeamIn|
|00000cd0| 64 65 78 20 29 0d 0a 09 | 09 09 62 72 65 61 6b 3b |dex )...|..break;|
|00000ce0| 0d 0a 0d 0a 09 42 65 73 | 74 42 61 73 65 20 3d 20 |.....Bes|tBase = |
|00000cf0| 42 65 73 74 46 6c 61 67 | 2e 48 6f 6d 65 42 61 73 |BestFlag|.HomeBas|
|00000d00| 65 3b 0d 0a 09 47 61 6d | 65 52 65 70 6c 69 63 61 |e;...Gam|eReplica|
|00000d10| 74 69 6f 6e 49 6e 66 6f | 2e 47 61 6d 65 45 6e 64 |tionInfo|.GameEnd|
|00000d20| 65 64 43 6f 6d 6d 65 6e | 74 73 20 3d 20 42 65 73 |edCommen|ts = Bes|
|00000d30| 74 2e 54 65 61 6d 4e 61 | 6d 65 40 47 61 6d 65 45 |t.TeamNa|me@GameE|
|00000d40| 6e 64 65 64 4d 65 73 73 | 61 67 65 3b 0d 0a 0d 0a |ndedMess|age;....|
|00000d50| 09 45 6e 64 54 69 6d 65 | 20 3d 20 4c 65 76 65 6c |.EndTime| = Level|
|00000d60| 2e 54 69 6d 65 53 65 63 | 6f 6e 64 73 20 2b 20 33 |.TimeSec|onds + 3|
|00000d70| 2e 30 3b 0d 0a 09 66 6f | 72 20 28 20 50 3d 4c 65 |.0;...fo|r ( P=Le|
|00000d80| 76 65 6c 2e 50 61 77 6e | 4c 69 73 74 3b 20 50 21 |vel.Pawn|List; P!|
|00000d90| 3d 4e 6f 6e 65 3b 20 50 | 3d 50 2e 6e 65 78 74 50 |=None; P|=P.nextP|
|00000da0| 61 77 6e 20 29 0d 0a 09 | 7b 0d 0a 09 09 50 2e 47 |awn )...|{....P.G|
|00000db0| 6f 74 6f 53 74 61 74 65 | 28 27 47 61 6d 65 45 6e |otoState|('GameEn|
|00000dc0| 64 65 64 27 29 3b 0d 0a | 09 09 50 6c 61 79 65 72 |ded');..|..Player|
|00000dd0| 20 3d 20 50 6c 61 79 65 | 72 50 61 77 6e 28 50 29 | = Playe|rPawn(P)|
|00000de0| 3b 0d 0a 09 09 69 66 20 | 28 20 50 6c 61 79 65 72 |;....if |( Player|
|00000df0| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 7b 0d | != None| )....{.|
|00000e00| 0a 09 09 09 50 6c 61 79 | 65 72 2e 62 42 65 68 69 |....Play|er.bBehi|
|00000e10| 6e 64 56 69 65 77 20 3d | 20 74 72 75 65 3b 0d 0a |ndView =| true;..|
|00000e20| 09 09 09 50 6c 61 79 65 | 72 2e 56 69 65 77 54 61 |...Playe|r.ViewTa|
|00000e30| 72 67 65 74 20 3d 20 42 | 65 73 74 42 61 73 65 3b |rget = B|estBase;|
|00000e40| 0d 0a 09 09 09 69 66 20 | 28 21 62 54 75 74 6f 72 |.....if |(!bTutor|
|00000e50| 69 61 6c 47 61 6d 65 29 | 0d 0a 09 09 09 7b 0d 0a |ialGame)|.....{..|
|00000e60| 09 09 09 09 69 66 20 28 | 20 50 6c 61 79 65 72 2e |....if (| Player.|
|00000e70| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00000e80| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 3d 3d 20 42 65 |nInfo.Te|am == Be|
|00000e90| 73 74 2e 54 65 61 6d 49 | 6e 64 65 78 20 29 0d 0a |st.TeamI|ndex )..|
|00000ea0| 09 09 09 09 09 50 6c 61 | 79 65 72 2e 43 6c 69 65 |.....Pla|yer.Clie|
|00000eb0| 6e 74 50 6c 61 79 53 6f | 75 6e 64 28 73 6f 75 6e |ntPlaySo|und(soun|
|00000ec0| 64 27 41 6e 6e 6f 75 6e | 63 65 72 2e 57 69 6e 6e |d'Announ|cer.Winn|
|00000ed0| 65 72 27 2c 20 54 72 75 | 65 29 3b 0d 0a 09 09 09 |er', Tru|e);.....|
|00000ee0| 09 65 6c 73 65 20 69 66 | 20 28 20 21 50 6c 61 79 |.else if| ( !Play|
|00000ef0| 65 72 2e 49 73 41 28 27 | 53 70 65 63 74 61 74 6f |er.IsA('|Spectato|
|00000f00| 72 27 29 20 29 20 0d 0a | 09 09 09 09 09 50 6c 61 |r') ) ..|.....Pla|
|00000f10| 79 65 72 2e 43 6c 69 65 | 6e 74 50 6c 61 79 53 6f |yer.Clie|ntPlaySo|
|00000f20| 75 6e 64 28 73 6f 75 6e | 64 27 41 6e 6e 6f 75 6e |und(soun|d'Announ|
|00000f30| 63 65 72 2e 4c 6f 73 74 | 4d 61 74 63 68 27 2c 20 |cer.Lost|Match', |
|00000f40| 54 72 75 65 29 3b 0d 0a | 09 09 09 7d 0d 0a 09 09 |True);..|...}....|
|00000f50| 09 50 6c 61 79 65 72 2e | 43 6c 69 65 6e 74 47 61 |.Player.|ClientGa|
|00000f60| 6d 65 45 6e 64 65 64 28 | 29 3b 0d 0a 09 09 7d 0d |meEnded(|);....}.|
|00000f70| 0a 09 7d 0d 0a 09 42 65 | 73 74 42 61 73 65 2e 62 |..}...Be|stBase.b|
|00000f80| 48 69 64 64 65 6e 20 3d | 20 66 61 6c 73 65 3b 0d |Hidden =| false;.|
|00000f90| 0a 09 42 65 73 74 46 6c | 61 67 2e 62 48 69 64 64 |..BestFl|ag.bHidd|
|00000fa0| 65 6e 20 3d 20 74 72 75 | 65 3b 0d 0a 09 72 65 74 |en = tru|e;...ret|
|00000fb0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 7d 0d 0a 0d 0a |urn true|;..}....|
|00000fc0| 66 75 6e 63 74 69 6f 6e | 20 53 63 6f 72 65 46 6c |function| ScoreFl|
|00000fd0| 61 67 28 50 61 77 6e 20 | 53 63 6f 72 65 72 2c 20 |ag(Pawn |Scorer, |
|00000fe0| 43 54 46 46 6c 61 67 20 | 74 68 65 46 6c 61 67 29 |CTFFlag |theFlag)|
|00000ff0| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 70 61 77 6e |..{...lo|cal pawn|
|00001000| 20 54 65 61 6d 4d 61 74 | 65 3b 0d 0a 09 6c 6f 63 | TeamMat|e;...loc|
|00001010| 61 6c 20 41 63 74 6f 72 | 20 41 3b 0d 0a 0d 0a 09 |al Actor| A;.....|
|00001020| 69 66 20 28 20 53 63 6f | 72 65 72 2e 50 6c 61 79 |if ( Sco|rer.Play|
|00001030| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001040| 6f 2e 54 65 61 6d 20 3d | 3d 20 74 68 65 46 6c 61 |o.Team =|= theFla|
|00001050| 67 2e 54 65 61 6d 20 29 | 0d 0a 09 7b 0d 0a 09 09 |g.Team )|...{....|
|00001060| 69 66 20 28 4c 65 76 65 | 6c 2e 47 61 6d 65 2e 57 |if (Leve|l.Game.W|
|00001070| 6f 72 6c 64 4c 6f 67 20 | 21 3d 20 4e 6f 6e 65 29 |orldLog |!= None)|
|00001080| 0d 0a 09 09 7b 0d 0a 09 | 09 09 4c 65 76 65 6c 2e |....{...|..Level.|
|00001090| 47 61 6d 65 2e 57 6f 72 | 6c 64 4c 6f 67 2e 4c 6f |Game.Wor|ldLog.Lo|
|000010a0| 67 53 70 65 63 69 61 6c | 45 76 65 6e 74 28 22 66 |gSpecial|Event("f|
|000010b0| 6c 61 67 5f 72 65 74 75 | 72 6e 65 64 22 2c 20 53 |lag_retu|rned", S|
|000010c0| 63 6f 72 65 72 2e 50 6c | 61 79 65 72 52 65 70 6c |corer.Pl|ayerRepl|
|000010d0| 69 63 61 74 69 6f 6e 49 | 6e 66 6f 2e 50 6c 61 79 |icationI|nfo.Play|
|000010e0| 65 72 49 44 2c 20 54 65 | 61 6d 73 5b 74 68 65 46 |erID, Te|ams[theF|
|000010f0| 6c 61 67 2e 54 65 61 6d | 5d 2e 54 65 61 6d 49 6e |lag.Team|].TeamIn|
|00001100| 64 65 78 29 3b 0d 0a 09 | 09 7d 0d 0a 09 09 69 66 |dex);...|.}....if|
|00001110| 20 28 4c 65 76 65 6c 2e | 47 61 6d 65 2e 4c 6f 63 | (Level.|Game.Loc|
|00001120| 61 6c 4c 6f 67 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |alLog !=| None)..|
|00001130| 09 09 7b 0d 0a 09 09 09 | 4c 65 76 65 6c 2e 47 61 |..{.....|Level.Ga|
|00001140| 6d 65 2e 4c 6f 63 61 6c | 4c 6f 67 2e 4c 6f 67 53 |me.Local|Log.LogS|
|00001150| 70 65 63 69 61 6c 45 76 | 65 6e 74 28 22 66 6c 61 |pecialEv|ent("fla|
|00001160| 67 5f 72 65 74 75 72 6e | 65 64 22 2c 20 53 63 6f |g_return|ed", Sco|
|00001170| 72 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |rer.Play|erReplic|
|00001180| 61 74 69 6f 6e 49 6e 66 | 6f 2e 50 6c 61 79 65 72 |ationInf|o.Player|
|00001190| 49 44 2c 20 54 65 61 6d | 73 5b 74 68 65 46 6c 61 |ID, Team|s[theFla|
|000011a0| 67 2e 54 65 61 6d 5d 2e | 54 65 61 6d 49 6e 64 65 |g.Team].|TeamInde|
|000011b0| 78 29 3b 0d 0a 09 09 7d | 0d 0a 09 09 42 72 6f 61 |x);....}|....Broa|
|000011c0| 64 63 61 73 74 4c 6f 63 | 61 6c 69 7a 65 64 4d 65 |dcastLoc|alizedMe|
|000011d0| 73 73 61 67 65 28 20 63 | 6c 61 73 73 27 43 54 46 |ssage( c|lass'CTF|
|000011e0| 4d 65 73 73 61 67 65 27 | 2c 20 31 2c 20 53 63 6f |Message'|, 1, Sco|
|000011f0| 72 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |rer.Play|erReplic|
|00001200| 61 74 69 6f 6e 49 6e 66 | 6f 2c 20 4e 6f 6e 65 2c |ationInf|o, None,|
|00001210| 20 54 68 65 46 6c 61 67 | 20 29 3b 0d 0a 09 09 66 | TheFlag| );....f|
|00001220| 6f 72 20 28 20 54 65 61 | 6d 4d 61 74 65 3d 4c 65 |or ( Tea|mMate=Le|
|00001230| 76 65 6c 2e 50 61 77 6e | 4c 69 73 74 3b 20 54 65 |vel.Pawn|List; Te|
|00001240| 61 6d 4d 61 74 65 21 3d | 4e 6f 6e 65 3b 20 54 65 |amMate!=|None; Te|
|00001250| 61 6d 4d 61 74 65 3d 54 | 65 61 6d 4d 61 74 65 2e |amMate=T|eamMate.|
|00001260| 4e 65 78 74 50 61 77 6e | 20 29 0d 0a 09 09 7b 0d |NextPawn| )....{.|
|00001270| 0a 09 09 09 69 66 20 28 | 20 54 65 61 6d 4d 61 74 |....if (| TeamMat|
|00001280| 65 2e 49 73 41 28 27 50 | 6c 61 79 65 72 50 61 77 |e.IsA('P|layerPaw|
|00001290| 6e 27 29 20 29 0d 0a 09 | 09 09 09 50 6c 61 79 65 |n') )...|...Playe|
|000012a0| 72 50 61 77 6e 28 54 65 | 61 6d 4d 61 74 65 29 2e |rPawn(Te|amMate).|
|000012b0| 43 6c 69 65 6e 74 50 6c | 61 79 53 6f 75 6e 64 28 |ClientPl|aySound(|
|000012c0| 52 65 74 75 72 6e 53 6f | 75 6e 64 29 3b 0d 0a 09 |ReturnSo|und);...|
|000012d0| 09 09 65 6c 73 65 20 69 | 66 20 28 20 54 65 61 6d |..else i|f ( Team|
|000012e0| 4d 61 74 65 2e 49 73 41 | 28 27 42 6f 74 27 29 20 |Mate.IsA|('Bot') |
|000012f0| 29 0d 0a 09 09 09 09 42 | 6f 74 28 54 65 61 6d 4d |)......B|ot(TeamM|
|00001300| 61 74 65 29 2e 53 65 74 | 4f 72 64 65 72 73 28 42 |ate).Set|Orders(B|
|00001310| 6f 74 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |otReplic|ationInf|
|00001320| 6f 28 54 65 61 6d 4d 61 | 74 65 2e 50 6c 61 79 65 |o(TeamMa|te.Playe|
|00001330| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00001340| 29 2e 52 65 61 6c 4f 72 | 64 65 72 73 2c 20 42 6f |).RealOr|ders, Bo|
|00001350| 74 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |tReplica|tionInfo|
|00001360| 28 54 65 61 6d 4d 61 74 | 65 2e 50 6c 61 79 65 72 |(TeamMat|e.Player|
|00001370| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 29 |Replicat|ionInfo)|
|00001380| 2e 52 65 61 6c 4f 72 64 | 65 72 47 69 76 65 72 2c |.RealOrd|erGiver,|
|00001390| 20 74 72 75 65 29 3b 0d | 0a 09 09 7d 0d 0a 09 09 | true);.|...}....|
|000013a0| 72 65 74 75 72 6e 3b 0d | 0a 09 7d 0d 0a 0d 0a 09 |return;.|..}.....|
|000013b0| 69 66 20 28 20 62 52 61 | 74 65 64 47 61 6d 65 20 |if ( bRa|tedGame |
|000013c0| 26 26 20 53 63 6f 72 65 | 72 2e 49 73 41 28 27 50 |&& Score|r.IsA('P|
|000013d0| 6c 61 79 65 72 50 61 77 | 6e 27 29 20 29 0d 0a 09 |layerPaw|n') )...|
|000013e0| 09 62 46 75 6c 66 69 6c | 6c 65 64 53 70 65 63 69 |.bFulfil|ledSpeci|
|000013f0| 61 6c 20 3d 20 74 72 75 | 65 3b 0d 0a 09 53 63 6f |al = tru|e;...Sco|
|00001400| 72 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |rer.Play|erReplic|
|00001410| 61 74 69 6f 6e 49 6e 66 | 6f 2e 53 63 6f 72 65 20 |ationInf|o.Score |
|00001420| 2b 3d 20 37 3b 0d 0a 09 | 54 65 61 6d 73 5b 53 63 |+= 7;...|Teams[Sc|
|00001430| 6f 72 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |orer.Pla|yerRepli|
|00001440| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 5d |cationIn|fo.Team]|
|00001450| 2e 53 63 6f 72 65 20 2b | 3d 20 31 2e 30 3b 0d 0a |.Score +|= 1.0;..|
|00001460| 0d 0a 09 66 6f 72 20 28 | 20 54 65 61 6d 4d 61 74 |...for (| TeamMat|
|00001470| 65 3d 4c 65 76 65 6c 2e | 50 61 77 6e 4c 69 73 74 |e=Level.|PawnList|
|00001480| 3b 20 54 65 61 6d 4d 61 | 74 65 21 3d 4e 6f 6e 65 |; TeamMa|te!=None|
|00001490| 3b 20 54 65 61 6d 4d 61 | 74 65 3d 54 65 61 6d 4d |; TeamMa|te=TeamM|
|000014a0| 61 74 65 2e 4e 65 78 74 | 50 61 77 6e 20 29 0d 0a |ate.Next|Pawn )..|
|000014b0| 09 7b 0d 0a 09 09 69 66 | 20 28 20 54 65 61 6d 4d |.{....if| ( TeamM|
|000014c0| 61 74 65 2e 49 73 41 28 | 27 50 6c 61 79 65 72 50 |ate.IsA(|'PlayerP|
|000014d0| 61 77 6e 27 29 20 29 0d | 0a 09 09 09 50 6c 61 79 |awn') ).|....Play|
|000014e0| 65 72 50 61 77 6e 28 54 | 65 61 6d 4d 61 74 65 29 |erPawn(T|eamMate)|
|000014f0| 2e 43 6c 69 65 6e 74 50 | 6c 61 79 53 6f 75 6e 64 |.ClientP|laySound|
|00001500| 28 43 61 70 74 75 72 65 | 53 6f 75 6e 64 5b 53 63 |(Capture|Sound[Sc|
|00001510| 6f 72 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |orer.Pla|yerRepli|
|00001520| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 5d |cationIn|fo.Team]|
|00001530| 29 3b 0d 0a 09 09 65 6c | 73 65 20 69 66 20 28 20 |);....el|se if ( |
|00001540| 54 65 61 6d 4d 61 74 65 | 2e 49 73 41 28 27 42 6f |TeamMate|.IsA('Bo|
|00001550| 74 27 29 20 29 0d 0a 09 | 09 09 42 6f 74 28 54 65 |t') )...|..Bot(Te|
|00001560| 61 6d 4d 61 74 65 29 2e | 53 65 74 4f 72 64 65 72 |amMate).|SetOrder|
|00001570| 73 28 42 6f 74 52 65 70 | 6c 69 63 61 74 69 6f 6e |s(BotRep|lication|
|00001580| 49 6e 66 6f 28 54 65 61 | 6d 4d 61 74 65 2e 50 6c |Info(Tea|mMate.Pl|
|00001590| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000015a0| 6e 66 6f 29 2e 52 65 61 | 6c 4f 72 64 65 72 73 2c |nfo).Rea|lOrders,|
|000015b0| 20 42 6f 74 52 65 70 6c | 69 63 61 74 69 6f 6e 49 | BotRepl|icationI|
|000015c0| 6e 66 6f 28 54 65 61 6d | 4d 61 74 65 2e 50 6c 61 |nfo(Team|Mate.Pla|
|000015d0| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|000015e0| 66 6f 29 2e 52 65 61 6c | 4f 72 64 65 72 47 69 76 |fo).Real|OrderGiv|
|000015f0| 65 72 2c 20 74 72 75 65 | 29 3b 0d 0a 09 7d 0d 0a |er, true|);...}..|
|00001600| 0d 0a 09 69 66 20 28 4c | 65 76 65 6c 2e 47 61 6d |...if (L|evel.Gam|
|00001610| 65 2e 57 6f 72 6c 64 4c | 6f 67 20 21 3d 20 4e 6f |e.WorldL|og != No|
|00001620| 6e 65 29 0d 0a 09 7b 0d | 0a 09 09 4c 65 76 65 6c |ne)...{.|...Level|
|00001630| 2e 47 61 6d 65 2e 57 6f | 72 6c 64 4c 6f 67 2e 4c |.Game.Wo|rldLog.L|
|00001640| 6f 67 53 70 65 63 69 61 | 6c 45 76 65 6e 74 28 22 |ogSpecia|lEvent("|
|00001650| 66 6c 61 67 5f 63 61 70 | 74 75 72 65 64 22 2c 20 |flag_cap|tured", |
|00001660| 53 63 6f 72 65 72 2e 50 | 6c 61 79 65 72 52 65 70 |Scorer.P|layerRep|
|00001670| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 50 6c 61 |lication|Info.Pla|
|00001680| 79 65 72 49 44 2c 20 54 | 65 61 6d 73 5b 74 68 65 |yerID, T|eams[the|
|00001690| 46 6c 61 67 2e 54 65 61 | 6d 5d 2e 54 65 61 6d 49 |Flag.Tea|m].TeamI|
|000016a0| 6e 64 65 78 29 3b 0d 0a | 09 7d 0d 0a 09 69 66 20 |ndex);..|.}...if |
|000016b0| 28 4c 65 76 65 6c 2e 47 | 61 6d 65 2e 4c 6f 63 61 |(Level.G|ame.Loca|
|000016c0| 6c 4c 6f 67 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |lLog != |None)...|
|000016d0| 7b 0d 0a 09 09 4c 65 76 | 65 6c 2e 47 61 6d 65 2e |{....Lev|el.Game.|
|000016e0| 4c 6f 63 61 6c 4c 6f 67 | 2e 4c 6f 67 53 70 65 63 |LocalLog|.LogSpec|
|000016f0| 69 61 6c 45 76 65 6e 74 | 28 22 66 6c 61 67 5f 63 |ialEvent|("flag_c|
|00001700| 61 70 74 75 72 65 64 22 | 2c 20 53 63 6f 72 65 72 |aptured"|, Scorer|
|00001710| 2e 50 6c 61 79 65 72 52 | 65 70 6c 69 63 61 74 69 |.PlayerR|eplicati|
|00001720| 6f 6e 49 6e 66 6f 2e 50 | 6c 61 79 65 72 49 44 2c |onInfo.P|layerID,|
|00001730| 20 54 65 61 6d 73 5b 74 | 68 65 46 6c 61 67 2e 54 | Teams[t|heFlag.T|
|00001740| 65 61 6d 5d 2e 54 65 61 | 6d 49 6e 64 65 78 29 3b |eam].Tea|mIndex);|
|00001750| 0d 0a 09 7d 0d 0a 09 42 | 72 6f 61 64 63 61 73 74 |...}...B|roadcast|
|00001760| 4c 6f 63 61 6c 69 7a 65 | 64 4d 65 73 73 61 67 65 |Localize|dMessage|
|00001770| 28 20 63 6c 61 73 73 27 | 43 54 46 4d 65 73 73 61 |( class'|CTFMessa|
|00001780| 67 65 27 2c 20 30 2c 20 | 53 63 6f 72 65 72 2e 50 |ge', 0, |Scorer.P|
|00001790| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000017a0| 49 6e 66 6f 2c 20 4e 6f | 6e 65 2c 20 54 68 65 46 |Info, No|ne, TheF|
|000017b0| 6c 61 67 20 29 3b 0d 0a | 09 69 66 20 28 20 74 68 |lag );..|.if ( th|
|000017c0| 65 46 6c 61 67 2e 48 6f | 6d 65 42 61 73 65 2e 45 |eFlag.Ho|meBase.E|
|000017d0| 76 65 6e 74 20 21 3d 20 | 27 27 20 29 0d 0a 09 09 |vent != |'' )....|
|000017e0| 66 6f 72 65 61 63 68 20 | 61 6c 6c 61 63 74 6f 72 |foreach |allactor|
|000017f0| 73 28 63 6c 61 73 73 27 | 41 63 74 6f 72 27 2c 20 |s(class'|Actor', |
|00001800| 41 2c 20 74 68 65 46 6c | 61 67 2e 48 6f 6d 65 42 |A, theFl|ag.HomeB|
|00001810| 61 73 65 2e 45 76 65 6e | 74 20 29 0d 0a 09 09 09 |ase.Even|t ).....|
|00001820| 41 2e 54 72 69 67 67 65 | 72 28 74 68 65 46 6c 61 |A.Trigge|r(theFla|
|00001830| 67 2e 48 6f 6d 65 42 61 | 73 65 2c 09 53 63 6f 72 |g.HomeBa|se,.Scor|
|00001840| 65 72 29 3b 0d 0a 0d 0a | 0d 0a 09 69 66 20 28 20 |er);....|...if ( |
|00001850| 28 62 4f 76 65 72 54 69 | 6d 65 20 7c 7c 20 28 47 |(bOverTi|me || (G|
|00001860| 6f 61 6c 54 65 61 6d 53 | 63 6f 72 65 20 21 3d 20 |oalTeamS|core != |
|00001870| 30 29 29 20 26 26 20 28 | 54 65 61 6d 73 5b 53 63 |0)) && (|Teams[Sc|
|00001880| 6f 72 65 72 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |orer.Pla|yerRepli|
|00001890| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 5d |cationIn|fo.Team]|
|000018a0| 2e 53 63 6f 72 65 20 3e | 3d 20 47 6f 61 6c 54 65 |.Score >|= GoalTe|
|000018b0| 61 6d 53 63 6f 72 65 29 | 20 29 0d 0a 09 09 45 6e |amScore)| )....En|
|000018c0| 64 47 61 6d 65 28 22 74 | 65 61 6d 73 63 6f 72 65 |dGame("t|eamscore|
|000018d0| 6c 69 6d 69 74 22 29 3b | 0d 0a 09 65 6c 73 65 20 |limit");|...else |
|000018e0| 69 66 20 28 20 62 4f 76 | 65 72 54 69 6d 65 20 29 |if ( bOv|erTime )|
|000018f0| 0d 0a 09 09 45 6e 64 47 | 61 6d 65 28 22 74 69 6d |....EndG|ame("tim|
|00001900| 65 6c 69 6d 69 74 22 29 | 3b 0d 0a 7d 0d 0a 20 0d |elimit")|;..}.. .|
|00001910| 0a 66 75 6e 63 74 69 6f | 6e 20 41 63 74 6f 72 20 |.functio|n Actor |
|00001920| 53 65 74 44 65 66 65 6e | 73 65 46 6f 72 28 42 6f |SetDefen|seFor(Bo|
|00001930| 74 20 61 42 6f 74 29 0d | 0a 7b 0d 0a 09 72 65 74 |t aBot).|.{...ret|
|00001940| 75 72 6e 20 43 54 46 52 | 65 70 6c 69 63 61 74 69 |urn CTFR|eplicati|
|00001950| 6f 6e 49 6e 66 6f 28 47 | 61 6d 65 52 65 70 6c 69 |onInfo(G|ameRepli|
|00001960| 63 61 74 69 6f 6e 49 6e | 66 6f 29 2e 46 6c 61 67 |cationIn|fo).Flag|
|00001970| 4c 69 73 74 5b 61 42 6f | 74 2e 50 6c 61 79 65 72 |List[aBo|t.Player|
|00001980| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00001990| 54 65 61 6d 5d 2e 48 6f | 6d 65 42 61 73 65 3b 0d |Team].Ho|meBase;.|
|000019a0| 0a 7d 0d 0a 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |.}......|function|
|000019b0| 20 66 6c 6f 61 74 20 47 | 61 6d 65 54 68 72 65 61 | float G|ameThrea|
|000019c0| 74 41 64 64 28 42 6f 74 | 20 61 42 6f 74 2c 20 50 |tAdd(Bot| aBot, P|
|000019d0| 61 77 6e 20 4f 74 68 65 | 72 29 0d 0a 7b 0d 0a 09 |awn Othe|r)..{...|
|000019e0| 6c 6f 63 61 6c 20 43 54 | 46 46 6c 61 67 20 61 46 |local CT|FFlag aF|
|000019f0| 6c 61 67 3b 0d 0a 0d 0a | 09 69 66 20 28 20 4f 74 |lag;....|.if ( Ot|
|00001a00| 68 65 72 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |her.Play|erReplic|
|00001a10| 61 74 69 6f 6e 49 6e 66 | 6f 2e 48 61 73 46 6c 61 |ationInf|o.HasFla|
|00001a20| 67 20 21 3d 20 4e 6f 6e | 65 20 29 0d 0a 09 09 72 |g != Non|e )....r|
|00001a30| 65 74 75 72 6e 20 31 30 | 3b 0d 0a 09 65 6c 73 65 |eturn 10|;...else|
|00001a40| 0d 0a 09 09 72 65 74 75 | 72 6e 20 30 3b 0d 0a 7d |....retu|rn 0;..}|
|00001a50| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 62 6f 6f |....func|tion boo|
|00001a60| 6c 20 46 69 6e 64 50 61 | 74 68 54 6f 42 61 73 65 |l FindPa|thToBase|
|00001a70| 28 42 6f 74 20 61 42 6f | 74 2c 20 46 6c 61 67 42 |(Bot aBo|t, FlagB|
|00001a80| 61 73 65 20 61 42 61 73 | 65 29 0d 0a 7b 0d 0a 09 |ase aBas|e)..{...|
|00001a90| 69 66 20 28 20 28 61 42 | 6f 74 2e 41 6c 74 65 72 |if ( (aB|ot.Alter|
|00001aa0| 6e 61 74 65 50 61 74 68 | 20 21 3d 20 4e 6f 6e 65 |natePath| != None|
|00001ab0| 29 20 0d 0a 09 09 26 26 | 20 28 61 42 6f 74 2e 41 |) ....&&| (aBot.A|
|00001ac0| 6c 74 65 72 6e 61 74 65 | 50 61 74 68 2e 74 65 61 |lternate|Path.tea|
|00001ad0| 6d 20 3d 3d 20 61 42 61 | 73 65 2e 74 65 61 6d 29 |m == aBa|se.team)|
|00001ae0| 20 29 0d 0a 09 7b 0d 0a | 09 09 69 66 20 28 20 61 | )...{..|..if ( a|
|00001af0| 42 6f 74 2e 41 63 74 6f | 72 52 65 61 63 68 61 62 |Bot.Acto|rReachab|
|00001b00| 6c 65 28 61 42 6f 74 2e | 41 6c 74 65 72 6e 61 74 |le(aBot.|Alternat|
|00001b10| 65 50 61 74 68 29 20 29 | 0d 0a 09 09 7b 0d 0a 09 |ePath) )|....{...|
|00001b20| 09 09 61 42 6f 74 2e 4d | 6f 76 65 54 61 72 67 65 |..aBot.M|oveTarge|
|00001b30| 74 20 3d 20 61 42 6f 74 | 2e 41 6c 74 65 72 6e 61 |t = aBot|.Alterna|
|00001b40| 74 65 50 61 74 68 3b 0d | 0a 09 09 09 61 42 6f 74 |tePath;.|....aBot|
|00001b50| 2e 41 6c 74 65 72 6e 61 | 74 65 50 61 74 68 20 3d |.Alterna|tePath =|
|00001b60| 20 4e 6f 6e 65 3b 0d 0a | 09 09 7d 0d 0a 09 09 65 | None;..|..}....e|
|00001b70| 6c 73 65 0d 0a 09 09 7b | 0d 0a 09 09 09 61 42 6f |lse....{|.....aBo|
|00001b80| 74 2e 4d 6f 76 65 54 61 | 72 67 65 74 20 3d 20 61 |t.MoveTa|rget = a|
|00001b90| 42 6f 74 2e 46 69 6e 64 | 50 61 74 68 54 6f 77 61 |Bot.Find|PathTowa|
|00001ba0| 72 64 28 61 42 6f 74 2e | 41 6c 74 65 72 6e 61 74 |rd(aBot.|Alternat|
|00001bb0| 65 50 61 74 68 29 3b 0d | 0a 09 09 09 69 66 20 28 |ePath);.|....if (|
|00001bc0| 20 61 42 6f 74 2e 4d 6f | 76 65 54 61 72 67 65 74 | aBot.Mo|veTarget|
|00001bd0| 20 3d 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 09 7b | == None| ).....{|
|00001be0| 0d 0a 09 09 09 09 61 42 | 6f 74 2e 41 6c 74 65 72 |......aB|ot.Alter|
|00001bf0| 6e 61 74 65 50 61 74 68 | 20 3d 20 4e 6f 6e 65 3b |natePath| = None;|
|00001c00| 0d 0a 09 09 09 09 61 42 | 6f 74 2e 4d 6f 76 65 54 |......aB|ot.MoveT|
|00001c10| 61 72 67 65 74 20 3d 20 | 61 42 6f 74 2e 46 69 6e |arget = |aBot.Fin|
|00001c20| 64 50 61 74 68 54 6f 77 | 61 72 64 28 61 42 61 73 |dPathTow|ard(aBas|
|00001c30| 65 29 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |e);.....|}....}..|
|00001c40| 09 7d 0d 0a 09 65 6c 73 | 65 09 09 09 09 09 09 0d |.}...els|e.......|
|00001c50| 0a 09 09 61 42 6f 74 2e | 4d 6f 76 65 54 61 72 67 |...aBot.|MoveTarg|
|00001c60| 65 74 20 3d 20 61 42 6f | 74 2e 46 69 6e 64 50 61 |et = aBo|t.FindPa|
|00001c70| 74 68 54 6f 77 61 72 64 | 28 61 42 61 73 65 29 3b |thToward|(aBase);|
|00001c80| 0d 0a 0d 0a 09 72 65 74 | 75 72 6e 20 28 61 42 6f |.....ret|urn (aBo|
|00001c90| 74 2e 62 4e 6f 43 6c 65 | 61 72 53 70 65 63 69 61 |t.bNoCle|arSpecia|
|00001ca0| 6c 20 7c 7c 20 28 61 42 | 6f 74 2e 4d 6f 76 65 54 |l || (aB|ot.MoveT|
|00001cb0| 61 72 67 65 74 20 21 3d | 20 4e 6f 6e 65 29 29 3b |arget !=| None));|
|00001cc0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001cd0| 62 79 74 65 20 41 73 73 | 65 73 73 42 6f 74 41 74 |byte Ass|essBotAt|
|00001ce0| 74 69 74 75 64 65 28 42 | 6f 74 20 61 42 6f 74 2c |titude(B|ot aBot,|
|00001cf0| 20 50 61 77 6e 20 4f 74 | 68 65 72 29 0d 0a 7b 0d | Pawn Ot|her)..{.|
|00001d00| 0a 09 69 66 20 28 20 61 | 42 6f 74 2e 50 6c 61 79 |..if ( a|Bot.Play|
|00001d10| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001d20| 6f 2e 54 65 61 6d 20 3d | 3d 20 4f 74 68 65 72 2e |o.Team =|= Other.|
|00001d30| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00001d40| 6e 49 6e 66 6f 2e 54 65 | 61 6d 20 29 0d 0a 09 09 |nInfo.Te|am )....|
|00001d50| 72 65 74 75 72 6e 20 33 | 3b 20 2f 2f 74 65 61 6d |return 3|; //team|
|00001d60| 6d 61 74 65 0d 0a 09 65 | 6c 73 65 20 69 66 20 28 |mate...e|lse if (|
|00001d70| 20 28 4f 74 68 65 72 2e | 62 49 73 50 6c 61 79 65 | (Other.|bIsPlaye|
|00001d80| 72 20 26 26 20 28 4f 74 | 68 65 72 2e 50 6c 61 79 |r && (Ot|her.Play|
|00001d90| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00001da0| 6f 2e 48 61 73 46 6c 61 | 67 20 21 3d 20 4e 6f 6e |o.HasFla|g != Non|
|00001db0| 65 29 29 20 0d 0a 09 09 | 09 09 7c 7c 20 28 61 42 |e)) ....|..|| (aB|
|00001dc0| 6f 74 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |ot.Playe|rReplica|
|00001dd0| 74 69 6f 6e 49 6e 66 6f | 2e 48 61 73 46 6c 61 67 |tionInfo|.HasFlag|
|00001de0| 20 21 3d 20 4e 6f 6e 65 | 29 20 29 0d 0a 09 09 72 | != None|) )....r|
|00001df0| 65 74 75 72 6e 20 31 3b | 0d 0a 09 65 6c 73 65 20 |eturn 1;|...else |
|00001e00| 0d 0a 09 09 72 65 74 75 | 72 6e 20 53 75 70 65 72 |....retu|rn Super|
|00001e10| 2e 41 73 73 65 73 73 42 | 6f 74 41 74 74 69 74 75 |.AssessB|otAttitu|
|00001e20| 64 65 28 61 42 6f 74 2c | 20 4f 74 68 65 72 29 3b |de(aBot,| Other);|
|00001e30| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001e40| 62 6f 6f 6c 20 46 69 6e | 64 53 70 65 63 69 61 6c |bool Fin|dSpecial|
|00001e50| 41 74 74 72 61 63 74 69 | 6f 6e 46 6f 72 28 42 6f |Attracti|onFor(Bo|
|00001e60| 74 20 61 42 6f 74 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |t aBot).|.{...loc|
|00001e70| 61 6c 20 43 54 46 46 6c | 61 67 20 46 72 69 65 6e |al CTFFl|ag Frien|
|00001e80| 64 6c 79 46 6c 61 67 2c | 20 45 6e 65 6d 79 46 6c |dlyFlag,| EnemyFl|
|00001e90| 61 67 3b 0d 0a 09 6c 6f | 63 61 6c 20 62 6f 6f 6c |ag;...lo|cal bool|
|00001ea0| 20 62 53 65 65 46 6c 61 | 67 2c 20 62 52 65 61 63 | bSeeFla|g, bReac|
|00001eb0| 68 48 6f 6d 65 2c 20 62 | 4f 72 64 65 72 65 64 3b |hHome, b|Ordered;|
|00001ec0| 0d 0a 09 6c 6f 63 61 6c | 20 66 6c 6f 61 74 20 44 |...local| float D|
|00001ed0| 69 73 74 3b 0d 0a 0d 0a | 09 69 66 20 28 20 61 42 |ist;....|.if ( aB|
|00001ee0| 6f 74 2e 4c 61 73 74 41 | 74 74 72 61 63 74 43 68 |ot.LastA|ttractCh|
|00001ef0| 65 63 6b 20 3d 3d 20 4c | 65 76 65 6c 2e 54 69 6d |eck == L|evel.Tim|
|00001f00| 65 53 65 63 6f 6e 64 73 | 20 29 0d 0a 09 09 72 65 |eSeconds| )....re|
|00001f10| 74 75 72 6e 20 66 61 6c | 73 65 3b 0d 0a 09 61 42 |turn fal|se;...aB|
|00001f20| 6f 74 2e 4c 61 73 74 41 | 74 74 72 61 63 74 43 68 |ot.LastA|ttractCh|
|00001f30| 65 63 6b 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |eck = Le|vel.Time|
|00001f40| 53 65 63 6f 6e 64 73 3b | 0d 0a 0d 0a 09 2f 2f 6c |Seconds;|.....//l|
|00001f50| 6f 67 28 61 42 6f 74 40 | 22 66 69 6e 64 20 73 70 |og(aBot@|"find sp|
|00001f60| 65 63 69 61 6c 20 61 74 | 74 72 61 63 74 69 6f 6e |ecial at|traction|
|00001f70| 20 69 6e 20 73 74 61 74 | 65 22 40 61 42 6f 74 2e | in stat|e"@aBot.|
|00001f80| 47 65 74 53 74 61 74 65 | 4e 61 6d 65 28 29 40 22 |GetState|Name()@"|
|00001f90| 61 74 22 40 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |at"@Leve|l.TimeSe|
|00001fa0| 63 6f 6e 64 73 29 3b 09 | 0d 0a 09 46 72 69 65 6e |conds);.|...Frien|
|00001fb0| 64 6c 79 46 6c 61 67 20 | 3d 20 43 54 46 52 65 70 |dlyFlag |= CTFRep|
|00001fc0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 28 47 61 6d |lication|Info(Gam|
|00001fd0| 65 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |eReplica|tionInfo|
|00001fe0| 29 2e 46 6c 61 67 4c 69 | 73 74 5b 61 42 6f 74 2e |).FlagLi|st[aBot.|
|00001ff0| 50 6c 61 79 65 72 52 65 | 70 6c 69 63 61 74 69 6f |PlayerRe|plicatio|
|00002000| 6e 49 6e 66 6f 2e 54 65 | 61 6d 5d 3b 0d 0a 09 0d |nInfo.Te|am];....|
|00002010| 0a 09 69 66 20 28 20 61 | 42 6f 74 2e 50 6c 61 79 |..if ( a|Bot.Play|
|00002020| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00002030| 6f 2e 54 65 61 6d 20 3d | 3d 20 30 20 29 0d 0a 09 |o.Team =|= 0 )...|
|00002040| 09 45 6e 65 6d 79 46 6c | 61 67 20 3d 20 43 54 46 |.EnemyFl|ag = CTF|
|00002050| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 28 |Replicat|ionInfo(|
|00002060| 47 61 6d 65 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |GameRepl|icationI|
|00002070| 6e 66 6f 29 2e 46 6c 61 | 67 4c 69 73 74 5b 31 5d |nfo).Fla|gList[1]|
|00002080| 3b 0d 0a 09 65 6c 73 65 | 0d 0a 09 09 45 6e 65 6d |;...else|....Enem|
|00002090| 79 46 6c 61 67 20 3d 20 | 43 54 46 52 65 70 6c 69 |yFlag = |CTFRepli|
|000020a0| 63 61 74 69 6f 6e 49 6e | 66 6f 28 47 61 6d 65 52 |cationIn|fo(GameR|
|000020b0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 29 2e |eplicati|onInfo).|
|000020c0| 46 6c 61 67 4c 69 73 74 | 5b 30 5d 3b 0d 0a 09 0d |FlagList|[0];....|
|000020d0| 0a 09 62 4f 72 64 65 72 | 65 64 20 3d 20 61 42 6f |..bOrder|ed = aBo|
|000020e0| 74 2e 62 53 6e 69 70 69 | 6e 67 20 7c 7c 20 28 61 |t.bSnipi|ng || (a|
|000020f0| 42 6f 74 2e 4f 72 64 65 | 72 73 20 3d 3d 20 27 46 |Bot.Orde|rs == 'F|
|00002100| 6f 6c 6c 6f 77 27 29 20 | 7c 7c 20 28 61 42 6f 74 |ollow') ||| (aBot|
|00002110| 2e 4f 72 64 65 72 73 20 | 3d 3d 20 27 48 6f 6c 64 |.Orders |== 'Hold|
|00002120| 27 29 3b 0d 0a 0d 0a 09 | 69 66 20 28 20 21 46 72 |');.....|if ( !Fr|
|00002130| 69 65 6e 64 6c 79 46 6c | 61 67 2e 62 48 6f 6d 65 |iendlyFl|ag.bHome|
|00002140| 20 20 29 0d 0a 09 7b 0d | 0a 09 09 62 53 65 65 46 | )...{.|...bSeeF|
|00002150| 6c 61 67 20 3d 20 61 42 | 6f 74 2e 4c 69 6e 65 4f |lag = aB|ot.LineO|
|00002160| 66 53 69 67 68 74 54 6f | 28 46 72 69 65 6e 64 6c |fSightTo|(Friendl|
|00002170| 79 46 6c 61 67 2e 50 6f | 73 69 74 69 6f 6e 28 29 |yFlag.Po|sition()|
|00002180| 29 3b 0d 0a 09 09 46 72 | 69 65 6e 64 6c 79 46 6c |);....Fr|iendlyFl|
|00002190| 61 67 2e 62 4b 6e 6f 77 | 6e 4c 6f 63 61 74 69 6f |ag.bKnow|nLocatio|
|000021a0| 6e 20 3d 20 46 72 69 65 | 6e 64 6c 79 46 6c 61 67 |n = Frie|ndlyFlag|
|000021b0| 2e 62 4b 6e 6f 77 6e 4c | 6f 63 61 74 69 6f 6e 20 |.bKnownL|ocation |
|000021c0| 7c 7c 20 62 53 65 65 46 | 6c 61 67 3b 0d 0a 0d 0a ||| bSeeF|lag;....|
|000021d0| 09 09 69 66 20 28 20 62 | 53 65 65 46 6c 61 67 20 |..if ( b|SeeFlag |
|000021e0| 26 26 20 28 46 72 69 65 | 6e 64 6c 79 46 6c 61 67 |&& (Frie|ndlyFlag|
|000021f0| 2e 48 6f 6c 64 65 72 20 | 3d 3d 20 4e 6f 6e 65 29 |.Holder |== None)|
|00002200| 20 26 26 20 61 42 6f 74 | 2e 41 63 74 6f 72 52 65 | && aBot|.ActorRe|
|00002210| 61 63 68 61 62 6c 65 28 | 46 72 69 65 6e 64 6c 79 |achable(|Friendly|
|00002220| 46 6c 61 67 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |Flag) ).|...{....|
|00002230| 09 69 66 20 28 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |.if ( Le|vel.Time|
|00002240| 53 65 63 6f 6e 64 73 20 | 2d 20 4c 61 73 74 47 6f |Seconds |- LastGo|
|00002250| 74 46 6c 61 67 20 3e 20 | 36 20 29 0d 0a 09 09 09 |tFlag > |6 ).....|
|00002260| 7b 09 0d 0a 09 09 09 09 | 4c 61 73 74 47 6f 74 46 |{.......|LastGotF|
|00002270| 6c 61 67 20 3d 20 4c 65 | 76 65 6c 2e 54 69 6d 65 |lag = Le|vel.Time|
|00002280| 53 65 63 6f 6e 64 73 3b | 0d 0a 09 09 09 09 61 42 |Seconds;|......aB|
|00002290| 6f 74 2e 53 65 6e 64 54 | 65 61 6d 4d 65 73 73 61 |ot.SendT|eamMessa|
|000022a0| 67 65 28 4e 6f 6e 65 2c | 20 27 4f 54 48 45 52 27 |ge(None,| 'OTHER'|
|000022b0| 2c 20 38 2c 20 32 30 29 | 3b 0d 0a 09 09 09 7d 0d |, 8, 20)|;.....}.|
|000022c0| 0a 09 09 09 61 42 6f 74 | 2e 4d 6f 76 65 54 61 72 |....aBot|.MoveTar|
|000022d0| 67 65 74 20 3d 20 46 72 | 69 65 6e 64 6c 79 46 6c |get = Fr|iendlyFl|
|000022e0| 61 67 3b 0d 0a 09 09 09 | 53 65 74 41 74 74 72 61 |ag;.....|SetAttra|
|000022f0| 63 74 69 6f 6e 53 74 61 | 74 65 46 6f 72 28 61 42 |ctionSta|teFor(aB|
|00002300| 6f 74 29 3b 0d 0a 09 09 | 09 72 65 74 75 72 6e 20 |ot);....|.return |
|00002310| 74 72 75 65 3b 0d 0a 09 | 09 7d 0d 0a 0d 0a 09 09 |true;...|.}......|
|00002320| 69 66 20 28 20 45 6e 65 | 6d 79 46 6c 61 67 2e 48 |if ( Ene|myFlag.H|
|00002330| 6f 6c 64 65 72 20 21 3d | 20 61 42 6f 74 20 29 0d |older !=| aBot ).|
|00002340| 0a 09 09 7b 0d 0a 09 09 | 09 69 66 20 28 20 62 53 |...{....|.if ( bS|
|00002350| 65 65 46 6c 61 67 20 26 | 26 20 28 46 72 69 65 6e |eeFlag &|& (Frien|
|00002360| 64 6c 79 46 6c 61 67 2e | 48 6f 6c 64 65 72 20 21 |dlyFlag.|Holder !|
|00002370| 3d 20 4e 6f 6e 65 29 20 | 29 0d 0a 09 09 09 7b 09 |= None) |).....{.|
|00002380| 0d 0a 09 09 09 09 46 72 | 69 65 6e 64 6c 79 46 6c |......Fr|iendlyFl|
|00002390| 61 67 2e 62 4b 6e 6f 77 | 6e 4c 6f 63 61 74 69 6f |ag.bKnow|nLocatio|
|000023a0| 6e 20 3d 20 74 72 75 65 | 3b 0d 0a 09 09 09 09 69 |n = true|;......i|
|000023b0| 66 20 28 20 4c 65 76 65 | 6c 2e 54 69 6d 65 53 65 |f ( Leve|l.TimeSe|
|000023c0| 63 6f 6e 64 73 20 2d 20 | 4c 61 73 74 53 65 65 46 |conds - |LastSeeF|
|000023d0| 6c 61 67 43 61 72 72 69 | 65 72 20 3e 20 36 20 29 |lagCarri|er > 6 )|
|000023e0| 0d 0a 09 09 09 09 7b 0d | 0a 09 09 09 09 09 4c 61 |......{.|......La|
|000023f0| 73 74 53 65 65 46 6c 61 | 67 43 61 72 72 69 65 72 |stSeeFla|gCarrier|
|00002400| 20 3d 20 4c 65 76 65 6c | 2e 54 69 6d 65 53 65 63 | = Level|.TimeSec|
|00002410| 6f 6e 64 73 3b 0d 0a 09 | 09 09 09 09 61 42 6f 74 |onds;...|....aBot|
|00002420| 2e 53 65 6e 64 54 65 61 | 6d 4d 65 73 73 61 67 65 |.SendTea|mMessage|
|00002430| 28 4e 6f 6e 65 2c 20 27 | 4f 54 48 45 52 27 2c 20 |(None, '|OTHER', |
|00002440| 31 32 2c 20 31 30 29 3b | 0d 0a 09 09 09 09 7d 0d |12, 10);|......}.|
|00002450| 0a 09 09 09 09 61 42 6f | 74 2e 53 65 74 45 6e 65 |.....aBo|t.SetEne|
|00002460| 6d 79 28 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e |my(Frien|dlyFlag.|
|00002470| 48 6f 6c 64 65 72 29 3b | 0d 0a 09 09 09 09 61 42 |Holder);|......aB|
|00002480| 6f 74 2e 4f 72 64 65 72 | 73 20 3d 20 27 46 72 65 |ot.Order|s = 'Fre|
|00002490| 65 6c 61 6e 63 65 27 3b | 0d 0a 09 09 09 09 61 42 |elance';|......aB|
|000024a0| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 3d 20 |ot.MoveT|arget = |
|000024b0| 46 72 69 65 6e 64 6c 79 | 46 6c 61 67 2e 48 6f 6c |Friendly|Flag.Hol|
|000024c0| 64 65 72 3b 0d 0a 09 09 | 09 09 69 66 20 28 20 61 |der;....|..if ( a|
|000024d0| 42 6f 74 2e 49 73 49 6e | 53 74 61 74 65 28 27 41 |Bot.IsIn|State('A|
|000024e0| 74 74 61 63 6b 69 6e 67 | 27 29 20 29 0d 0a 09 09 |ttacking|') )....|
|000024f0| 09 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00002500| 0d 0a 09 09 09 09 65 6c | 73 65 0d 0a 09 09 09 09 |......el|se......|
|00002510| 7b 0d 0a 09 09 09 09 09 | 61 42 6f 74 2e 47 6f 74 |{.......|aBot.Got|
|00002520| 6f 53 74 61 74 65 28 27 | 41 74 74 61 63 6b 69 6e |oState('|Attackin|
|00002530| 67 27 29 3b 0d 0a 09 09 | 09 09 09 72 65 74 75 72 |g');....|...retur|
|00002540| 6e 20 74 72 75 65 3b 0d | 0a 09 09 09 09 7d 0d 0a |n true;.|.....}..|
|00002550| 09 09 09 7d 0d 0a 09 09 | 09 65 6c 73 65 20 69 66 |...}....|.else if|
|00002560| 20 28 20 61 42 6f 74 2e | 4f 72 64 65 72 73 20 3d | ( aBot.|Orders =|
|00002570| 3d 20 27 41 74 74 61 63 | 6b 27 20 29 0d 0a 09 09 |= 'Attac|k' )....|
|00002580| 09 7b 0d 0a 09 09 09 09 | 2f 2f 20 62 72 65 61 6b |.{......|// break|
|00002590| 20 6f 66 66 20 61 74 74 | 61 63 6b 20 6f 6e 6c 79 | off att|ack only|
|000025a0| 20 69 66 20 6e 65 65 64 | 65 64 0d 0a 09 09 09 09 | if need|ed......|
|000025b0| 69 66 20 28 20 62 53 65 | 65 46 6c 61 67 20 7c 7c |if ( bSe|eFlag |||
|000025c0| 20 28 45 6e 65 6d 79 46 | 6c 61 67 2e 48 6f 6c 64 | (EnemyF|lag.Hold|
|000025d0| 65 72 20 21 3d 20 4e 6f | 6e 65 29 20 0d 0a 09 09 |er != No|ne) ....|
|000025e0| 09 09 09 7c 7c 20 28 28 | 28 46 72 69 65 6e 64 6c |...|| ((|(Friendl|
|000025f0| 79 46 6c 61 67 2e 50 6f | 73 69 74 69 6f 6e 28 29 |yFlag.Po|sition()|
|00002600| 2e 52 65 67 69 6f 6e 2e | 5a 6f 6e 65 20 21 3d 20 |.Region.|Zone != |
|00002610| 46 72 69 65 6e 64 6c 79 | 46 6c 61 67 2e 48 6f 6d |Friendly|Flag.Hom|
|00002620| 65 62 61 73 65 2e 52 65 | 67 69 6f 6e 2e 5a 6f 6e |ebase.Re|gion.Zon|
|00002630| 65 29 20 7c 7c 20 28 56 | 53 69 7a 65 28 46 72 69 |e) || (V|Size(Fri|
|00002640| 65 6e 64 6c 79 46 6c 61 | 67 2e 48 6f 6d 65 62 61 |endlyFla|g.Homeba|
|00002650| 73 65 2e 4c 6f 63 61 74 | 69 6f 6e 20 2d 20 46 72 |se.Locat|ion - Fr|
|00002660| 69 65 6e 64 6c 79 46 6c | 61 67 2e 50 6f 73 69 74 |iendlyFl|ag.Posit|
|00002670| 69 6f 6e 28 29 2e 4c 6f | 63 61 74 69 6f 6e 29 20 |ion().Lo|cation) |
|00002680| 3e 20 31 30 30 30 29 29 | 20 0d 0a 09 09 09 09 09 |> 1000))| .......|
|00002690| 09 26 26 20 28 28 61 42 | 6f 74 2e 52 65 67 69 6f |.&& ((aB|ot.Regio|
|000026a0| 6e 2e 5a 6f 6e 65 20 21 | 3d 20 45 6e 65 6d 79 46 |n.Zone !|= EnemyF|
|000026b0| 6c 61 67 2e 52 65 67 69 | 6f 6e 2e 5a 6f 6e 65 29 |lag.Regi|on.Zone)|
|000026c0| 0d 0a 09 09 09 09 09 09 | 09 7c 7c 20 28 56 53 69 |........|.|| (VSi|
|000026d0| 7a 65 28 61 42 6f 74 2e | 4c 6f 63 61 74 69 6f 6e |ze(aBot.|Location|
|000026e0| 20 2d 20 45 6e 65 6d 79 | 46 6c 61 67 2e 4c 6f 63 | - Enemy|Flag.Loc|
|000026f0| 61 74 69 6f 6e 29 20 3e | 20 31 36 30 30 29 20 7c |ation) >| 1600) ||
|00002700| 7c 20 28 56 53 69 7a 65 | 28 61 42 6f 74 2e 4c 6f || (VSize|(aBot.Lo|
|00002710| 63 61 74 69 6f 6e 20 2d | 20 46 72 69 65 6e 64 6c |cation -| Friendl|
|00002720| 79 46 6c 61 67 2e 50 6f | 73 69 74 69 6f 6e 28 29 |yFlag.Po|sition()|
|00002730| 2e 4c 6f 63 61 74 69 6f | 6e 29 20 3c 20 31 32 30 |.Locatio|n) < 120|
|00002740| 30 29 29 29 20 29 0d 0a | 09 09 09 09 7b 0d 0a 09 |0))) )..|....{...|
|00002750| 09 09 09 09 46 72 69 65 | 6e 64 6c 79 46 6c 61 67 |....Frie|ndlyFlag|
|00002760| 2e 62 4b 6e 6f 77 6e 4c | 6f 63 61 74 69 6f 6e 20 |.bKnownL|ocation |
|00002770| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 09 09 61 42 |= true;.|......aB|
|00002780| 6f 74 2e 4d 6f 76 65 54 | 61 72 67 65 74 20 3d 20 |ot.MoveT|arget = |
|00002790| 61 42 6f 74 2e 46 69 6e | 64 50 61 74 68 54 6f 77 |aBot.Fin|dPathTow|
|000027a0| 61 72 64 28 46 72 69 65 | 6e 64 6c 79 46 6c 61 67 |ard(Frie|ndlyFlag|
|000027b0| 2e 50 6f 73 69 74 69 6f | 6e 28 29 29 3b 0d 0a 09 |.Positio|n());...|
|000027c0| 09 09 09 09 61 42 6f 74 | 2e 41 6c 74 65 72 6e 61 |....aBot|.Alterna|
|000027d0| 74 65 50 61 74 68 20 3d | 20 4e 6f 6e 65 3b 0d 0a |tePath =| None;..|
|000027e0| 09 09 09 09 09 69 66 20 | 28 20 61 42 6f 74 2e 4d |.....if |( aBot.M|
|000027f0| 6f 76 65 54 61 72 67 65 | 74 20 21 3d 20 4e 6f 6e |oveTarge|t != Non|
|00002800| 65 20 29 0d 0a 09 09 09 | 09 09 7b 0d 0a 09 09 09 |e ).....|..{.....|
|00002810| 09 09 09 53 65 74 41 74 | 74 72 61 63 74 69 6f 6e |...SetAt|traction|
|00002820| 53 74 61 74 65 46 6f 72 | 28 61 42 6f 74 29 3b 0d |StateFor|(aBot);.|
|00002830| 0a 09 09 09 09 09 09 72 | 65 74 75 72 6e 20 74 72 |.......r|eturn tr|
|00002840| 75 65 3b 0d 0a 09 09 09 | 09 09 7d 0d 0a 09 09 09 |ue;.....|..}.....|
|00002850| 09 7d 0d 0a 09 09 09 7d | 0d 0a 09 09 09 65 6c 73 |.}.....}|.....els|
|00002860| 65 20 69 66 20 28 20 28 | 21 62 4f 72 64 65 72 65 |e if ( (|!bOrdere|
|00002870| 64 20 7c 7c 20 41 42 6f | 74 2e 4f 72 64 65 72 4f |d || ABo|t.OrderO|
|00002880| 62 6a 65 63 74 2e 49 73 | 41 28 27 42 6f 74 27 29 |bject.Is|A('Bot')|
|00002890| 29 20 0d 0a 09 09 09 09 | 26 26 20 28 46 72 69 65 |) ......|&& (Frie|
|000028a0| 6e 64 6c 79 46 6c 61 67 | 2e 62 4b 6e 6f 77 6e 4c |ndlyFlag|.bKnownL|
|000028b0| 6f 63 61 74 69 6f 6e 20 | 7c 7c 20 28 46 52 61 6e |ocation ||| (FRan|
|000028c0| 64 28 29 20 3c 20 30 2e | 31 29 29 20 29 20 0d 0a |d() < 0.|1)) ) ..|
|000028d0| 09 09 09 7b 0d 0a 09 09 | 09 09 46 72 69 65 6e 64 |...{....|..Friend|
|000028e0| 6c 79 46 6c 61 67 2e 62 | 4b 6e 6f 77 6e 4c 6f 63 |lyFlag.b|KnownLoc|
|000028f0| 61 74 69 6f 6e 20 3d 20 | 74 72 75 65 3b 0d 0a 09 |ation = |true;...|
|00002900| 09 09 09 61 42 6f 74 2e | 4d 6f 76 65 54 61 72 67 |...aBot.|MoveTarg|
|00002910| 65 74 20 3d 20 61 42 6f | 74 2e 46 69 6e 64 50 61 |et = aBo|t.FindPa|
|00002920| 74 68 54 6f 77 61 72 64 | 28 46 72 69 65 6e 64 6c |thToward|(Friendl|
|00002930| 79 46 6c 61 67 2e 50 6f | 73 69 74 69 6f 6e 28 29 |yFlag.Po|sition()|
|00002940| 29 3b 0d 0a 09 09 09 09 | 69 66 20 28 20 61 42 6f |);......|if ( aBo|
|00002950| 74 2e 4d 6f 76 65 54 61 | 72 67 65 74 20 21 3d 20 |t.MoveTa|rget != |
|00002960| 4e 6f 6e 65 20 29 0d 0a | 09 09 09 09 7b 0d 0a 09 |None )..|....{...|
|00002970| 09 09 09 09 53 65 74 41 | 74 74 72 61 63 74 69 6f |....SetA|ttractio|
|00002980| 6e 53 74 61 74 65 46 6f | 72 28 61 42 6f 74 29 3b |nStateFo|r(aBot);|
|00002990| 0d 0a 09 09 09 09 09 72 | 65 74 75 72 6e 20 74 72 |.......r|eturn tr|
|000029a0| 75 65 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 7d |ue;.....|.}.....}|
|000029b0| 0d 0a 09 09 7d 0d 0a 09 | 7d 0d 0a 0d 0a 09 69 66 |....}...|}.....if|
|000029c0| 20 28 20 45 6e 65 6d 79 | 46 6c 61 67 2e 48 6f 6c | ( Enemy|Flag.Hol|
|000029d0| 64 65 72 20 3d 3d 20 61 | 42 6f 74 20 29 0d 0a 09 |der == a|Bot )...|
|000029e0| 7b 0d 0a 09 09 61 42 6f | 74 2e 62 43 61 6e 54 72 |{....aBo|t.bCanTr|
|000029f0| 61 6e 73 6c 6f 63 61 74 | 65 20 3d 20 66 61 6c 73 |anslocat|e = fals|
|00002a00| 65 3b 0d 0a 09 09 62 52 | 65 61 63 68 48 6f 6d 65 |e;....bR|eachHome|
|00002a10| 20 3d 20 61 42 6f 74 2e | 41 63 74 6f 72 52 65 61 | = aBot.|ActorRea|
|00002a20| 63 68 61 62 6c 65 28 46 | 72 69 65 6e 64 6c 79 46 |chable(F|riendlyF|
|00002a30| 6c 61 67 2e 48 6f 6d 65 | 42 61 73 65 29 3b 0d 0a |lag.Home|Base);..|
|00002a40| 09 09 69 66 20 28 20 62 | 52 65 61 63 68 48 6f 6d |..if ( b|ReachHom|
|00002a50| 65 20 26 26 20 21 46 72 | 69 65 6e 64 6c 79 46 6c |e && !Fr|iendlyFl|
|00002a60| 61 67 2e 62 48 6f 6d 65 | 20 29 0d 0a 09 09 7b 0d |ag.bHome| )....{.|
|00002a70| 0a 09 09 09 61 42 6f 74 | 2e 53 65 6e 64 54 65 61 |....aBot|.SendTea|
|00002a80| 6d 4d 65 73 73 61 67 65 | 28 4e 6f 6e 65 2c 20 27 |mMessage|(None, '|
|00002a90| 4f 54 48 45 52 27 2c 20 | 31 2c 20 32 35 29 3b 0d |OTHER', |1, 25);.|
|00002aa0| 0a 09 09 09 61 42 6f 74 | 2e 4f 72 64 65 72 73 20 |....aBot|.Orders |
|00002ab0| 3d 20 27 46 72 65 65 6c | 61 6e 63 65 27 3b 0d 0a |= 'Freel|ance';..|
|00002ac0| 09 09 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |...retur|n false;|
|00002ad0| 0d 0a 09 09 7d 0d 0a 09 | 09 69 66 20 28 20 62 52 |....}...|.if ( bR|
|00002ae0| 65 61 63 68 48 6f 6d 65 | 20 26 26 20 28 56 53 69 |eachHome| && (VSi|
|00002af0| 7a 65 28 61 42 6f 74 2e | 4c 6f 63 61 74 69 6f 6e |ze(aBot.|Location|
|00002b00| 20 2d 20 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e | - Frien|dlyFlag.|
|00002b10| 4c 6f 63 61 74 69 6f 6e | 29 20 3c 20 33 30 29 20 |Location|) < 30) |
|00002b20| 29 0d 0a 09 09 09 46 72 | 69 65 6e 64 6c 79 46 6c |).....Fr|iendlyFl|
|00002b30| 61 67 2e 54 6f 75 63 68 | 28 61 42 6f 74 29 3b 0d |ag.Touch|(aBot);.|
|00002b40| 0a 09 09 69 66 20 28 20 | 61 42 6f 74 2e 45 6e 65 |...if ( |aBot.Ene|
|00002b50| 6d 79 20 21 3d 20 4e 6f | 6e 65 20 29 0d 0a 09 09 |my != No|ne )....|
|00002b60| 7b 0d 0a 09 09 09 69 66 | 20 28 20 61 42 6f 74 2e |{.....if| ( aBot.|
|00002b70| 48 65 61 6c 74 68 20 3c | 20 36 30 20 29 0d 0a 09 |Health <| 60 )...|
|00002b80| 09 09 09 61 42 6f 74 2e | 53 65 6e 64 54 65 61 6d |...aBot.|SendTeam|
|00002b90| 4d 65 73 73 61 67 65 28 | 4e 6f 6e 65 2c 20 27 4f |Message(|None, 'O|
|00002ba0| 54 48 45 52 27 2c 20 31 | 33 2c 20 32 35 29 3b 0d |THER', 1|3, 25);.|
|00002bb0| 0a 09 09 09 69 66 20 28 | 20 21 61 42 6f 74 2e 49 |....if (| !aBot.I|
|00002bc0| 73 49 6e 53 74 61 74 65 | 28 27 46 61 6c 6c 42 61 |sInState|('FallBa|
|00002bd0| 63 6b 27 29 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |ck') )..|...{....|
|00002be0| 09 09 61 42 6f 74 2e 62 | 4e 6f 43 6c 65 61 72 53 |..aBot.b|NoClearS|
|00002bf0| 70 65 63 69 61 6c 20 3d | 20 74 72 75 65 3b 0d 0a |pecial =| true;..|
|00002c00| 09 09 09 09 61 42 6f 74 | 2e 54 77 65 65 6e 54 6f |....aBot|.TweenTo|
|00002c10| 52 75 6e 6e 69 6e 67 28 | 30 2e 31 29 3b 0d 0a 09 |Running(|0.1);...|
|00002c20| 09 09 09 61 42 6f 74 2e | 47 6f 74 6f 53 74 61 74 |...aBot.|GotoStat|
|00002c30| 65 28 27 46 61 6c 6c 62 | 61 63 6b 27 2c 20 27 53 |e('Fallb|ack', 'S|
|00002c40| 70 65 63 69 61 6c 4e 61 | 76 69 67 27 29 3b 0d 0a |pecialNa|vig');..|
|00002c50| 09 09 09 7d 0d 0a 09 09 | 09 69 66 20 28 20 62 52 |...}....|.if ( bR|
|00002c60| 65 61 63 68 48 6f 6d 65 | 20 29 0d 0a 09 09 09 09 |eachHome| )......|
|00002c70| 61 42 6f 74 2e 4d 6f 76 | 65 54 61 72 67 65 74 20 |aBot.Mov|eTarget |
|00002c80| 3d 20 46 72 69 65 6e 64 | 6c 79 46 6c 61 67 2e 48 |= Friend|lyFlag.H|
|00002c90| 6f 6d 65 42 61 73 65 3b | 0d 0a 09 09 09 65 6c 73 |omeBase;|.....els|
|00002ca0| 65 0d 0a 09 09 09 09 72 | 65 74 75 72 6e 20 46 69 |e......r|eturn Fi|
|00002cb0| 6e 64 50 61 74 68 54 6f | 42 61 73 65 28 61 42 6f |ndPathTo|Base(aBo|
|00002cc0| 74 2c 20 46 72 69 65 6e | 64 6c 79 46 6c 61 67 2e |t, Frien|dlyFlag.|
|00002cd0| 48 6f 6d 65 42 61 73 65 | 29 3b 0d 0a 09 09 7d 0d |HomeBase|);....}.|
|00002ce0| 0a 09 09 65 6c 73 65 0d | 0a 09 09 7b 0d 0a 09 09 |...else.|...{....|
|00002cf0| 09 69 66 20 28 20 21 61 | 42 6f 74 2e 49 73 49 6e |.if ( !a|Bot.IsIn|
|00002d00| 53 74 61 74 65 28 27 52 | 6f 61 6d 69 6e 67 27 29 |State('R|oaming')|
|00002d10| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 61 42 | ).....{|......aB|
|00002d20| 6f 74 2e 62 4e 6f 43 6c | 65 61 72 53 70 65 63 69 |ot.bNoCl|earSpeci|
|00002d30| 61 6c 20 3d 20 74 72 75 | 65 3b 0d 0a 09 09 09 09 |al = tru|e;......|
|00002d40| 61 42 6f 74 2e 54 77 65 | 65 6e 54 6f 52 75 6e 6e |aBot.Twe|enToRunn|
|00002d50| 69 6e 67 28 30 2e 31 29 | 3b 0d 0a 09 09 09 09 61 |ing(0.1)|;......a|
|00002d60| 42 6f 74 2e 47 6f 74 6f | 53 74 61 74 65 28 27 52 |Bot.Goto|State('R|
|00002d70| 6f 61 6d 69 6e 67 27 2c | 20 27 53 70 65 63 69 61 |oaming',| 'Specia|
|00002d80| 6c 4e 61 76 69 67 27 29 | 3b 0d 0a 09 09 09 7d 0d |lNavig')|;.....}.|
|00002d90| 0a 09 09 09 69 66 20 28 | 20 62 52 65 61 63 68 48 |....if (| bReachH|
|00002da0| 6f 6d 65 20 29 0d 0a 09 | 09 09 09 61 42 6f 74 2e |ome )...|...aBot.|
|00002db0| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 46 72 69 |MoveTarg|et = Fri|
|00002dc0| 65 6e 64 6c 79 46 6c 61 | 67 2e 48 6f 6d 65 42 61 |endlyFla|g.HomeBa|
|00002dd0| 73 65 3b 0d 0a 09 09 09 | 65 6c 73 65 0d 0a 09 09 |se;.....|else....|
|00002de0| 09 09 72 65 74 75 72 6e | 20 46 69 6e 64 50 61 74 |..return| FindPat|
|00002df0| 68 54 6f 42 61 73 65 28 | 61 42 6f 74 2c 20 46 72 |hToBase(|aBot, Fr|
|00002e00| 69 65 6e 64 6c 79 46 6c | 61 67 2e 48 6f 6d 65 42 |iendlyFl|ag.HomeB|
|00002e10| 61 73 65 29 3b 0d 0a 09 | 09 7d 09 09 0d 0a 09 09 |ase);...|.}......|
|00002e20| 72 65 74 75 72 6e 20 74 | 72 75 65 3b 0d 0a 09 7d |return t|rue;...}|
|00002e30| 0d 0a 0d 0a 09 69 66 20 | 28 20 45 6e 65 6d 79 46 |.....if |( EnemyF|
|00002e40| 6c 61 67 2e 48 6f 6c 64 | 65 72 20 3d 3d 20 4e 6f |lag.Hold|er == No|
|00002e50| 6e 65 20 29 0d 0a 09 7b | 0d 0a 09 09 69 66 20 28 |ne )...{|....if (|
|00002e60| 20 61 42 6f 74 2e 41 63 | 74 6f 72 52 65 61 63 68 | aBot.Ac|torReach|
|00002e70| 61 62 6c 65 28 45 6e 65 | 6d 79 46 6c 61 67 29 20 |able(Ene|myFlag) |
|00002e80| 29 0d 0a 09 09 7b 0d 0a | 09 09 09 61 42 6f 74 2e |)....{..|...aBot.|
|00002e90| 4d 6f 76 65 54 61 72 67 | 65 74 20 3d 20 45 6e 65 |MoveTarg|et = Ene|
|00002ea0| 6d 79 46 6c 61 67 3b 0d | 0a 09 09 09 53 65 74 41 |myFlag;.|....SetA|
|00002eb0| 74 74 72 61 63 74 69 6f | 6e 53 74 61 74 65 46 6f |ttractio|nStateFo|
|00002ec0| 72 28 61 42 6f 74 29 3b | 0d 0a 09 09 09 72 65 74 |r(aBot);|.....ret|
|00002ed0| 75 72 6e 20 74 72 75 65 | 3b 0d 0a 09 09 7d 0d 0a |urn true|;....}..|
|00002ee0| 09 09 65 6c 73 65 20 69 | 66 20 28 20 28 61 42 6f |..else i|f ( (aBo|
|00002ef0| 74 2e 4f 72 64 65 72 73 | 20 3d 3d 20 27 41 74 74 |t.Orders| == 'Att|
|00002f00| 61 63 6b 27 29 0d 0a 09 | 09 09 09 20 7c 7c 20 28 |ack')...|... || (|
|00002f10| 28 61 42 6f 74 2e 4f 72 | 64 65 72 73 20 3d 3d 20 |(aBot.Or|ders == |
|00002f20| 27 46 6f 6c 6c 6f 77 27 | 29 20 26 26 20 61 42 6f |'Follow'|) && aBo|
|00002f30| 74 2e 4f 72 64 65 72 4f | 62 6a 65 63 74 2e 49 73 |t.OrderO|bject.Is|
|00002f40| 41 28 27 42 6f 74 27 29 | 0d 0a 09 09 09 09 09 26 |A('Bot')|.......&|
|00002f50| 26 20 28 28 50 61 77 6e | 28 61 42 6f 74 2e 4f 72 |& ((Pawn|(aBot.Or|
|00002f60| 64 65 72 4f 62 6a 65 63 | 74 29 2e 48 65 61 6c 74 |derObjec|t).Healt|
|00002f70| 68 20 3c 3d 20 30 29 20 | 0d 0a 09 09 09 09 09 09 |h <= 0) |........|
|00002f80| 20 7c 7c 20 28 28 45 6e | 65 6d 79 46 6c 61 67 2e | || ((En|emyFlag.|
|00002f90| 52 65 67 69 6f 6e 2e 5a | 6f 6e 65 20 3d 3d 20 61 |Region.Z|one == a|
|00002fa0| 42 6f 74 2e 52 65 67 69 | 6f 6e 2e 5a 6f 6e 65 29 |Bot.Regi|on.Zone)|
|00002fb0| 20 26 26 20 28 56 53 69 | 7a 65 28 45 6e 65 6d 79 | && (VSi|ze(Enemy|
|00002fc0| 46 6c 61 67 2e 4c 6f 63 | 61 74 69 6f 6e 20 2d 20 |Flag.Loc|ation - |
|00002fd0| 61 42 6f 74 2e 4c 6f 63 | 61 74 69 6f 6e 29 20 3c |aBot.Loc|ation) <|
|00002fe0| 20 32 30 30 30 29 29 29 | 29 20 29 0d 0a 09 09 7b | 2000)))|) )....{|
|00002ff0| 0d 0a 09 09 09 69 66 20 | 28 20 21 61 42 6f 74 2e |.....if |( !aBot.|
|00003000| 62 4b 61 6d 69 6b 61 7a | 65 0d 0a 09 09 09 09 26 |bKamikaz|e......&|
|00003010| 26 20 28 20 28 61 42 6f | 74 2e 57 65 61 70 6f 6e |& ( (aBo|t.Weapon|
|00003020| 20 3d 3d 20 4e 6f 6e 65 | 29 20 7c 7c 20 28 61 42 | == None|) || (aB|
|00003030| 6f 74 2e 57 65 61 70 6f | 6e 2e 41 49 52 61 74 69 |ot.Weapo|n.AIRati|
|00003040| 6e 67 20 3c 20 30 2e 34 | 29 29 20 29 0d 0a 09 09 |ng < 0.4|)) )....|
|00003050| 09 7b 0d 0a 09 09 09 09 | 61 42 6f 74 2e 62 4b 61 |.{......|aBot.bKa|
|00003060| 6d 69 6b 61 7a 65 20 3d | 20 28 20 46 52 61 6e 64 |mikaze =| ( FRand|
|00003070| 28 29 20 3c 20 30 2e 31 | 20 29 3b 0d 0a 09 09 09 |() < 0.1| );.....|
|00003080| 09 72 65 74 75 72 6e 20 | 66 61 6c 73 65 3b 0d 0a |.return |false;..|
|00003090| 09 09 09 7d 0d 0a 0d 0a | 09 09 09 69 66 20 28 20 |...}....|...if ( |
|000030a0| 28 61 42 6f 74 2e 45 6e | 65 6d 79 20 21 3d 20 4e |(aBot.En|emy != N|
|000030b0| 6f 6e 65 29 20 0d 0a 09 | 09 09 09 26 26 20 28 61 |one) ...|...&& (a|
|000030c0| 42 6f 74 2e 45 6e 65 6d | 79 2e 49 73 41 28 27 50 |Bot.Enem|y.IsA('P|
|000030d0| 6c 61 79 65 72 50 61 77 | 6e 27 29 20 7c 7c 20 28 |layerPaw|n') || (|
|000030e0| 61 42 6f 74 2e 45 6e 65 | 6d 79 2e 49 73 41 28 27 |aBot.Ene|my.IsA('|
|000030f0| 42 6f 74 27 29 20 26 26 | 20 28 42 6f 74 28 61 42 |Bot') &&| (Bot(aB|
|00003100| 6f 74 2e 45 6e 65 6d 79 | 29 2e 4f 72 64 65 72 73 |ot.Enemy|).Orders|
|00003110| 20 3d 3d 20 27 41 74 74 | 61 63 6b 27 29 29 29 0d | == 'Att|ack'))).|
|00003120| 0a 09 09 09 09 26 26 20 | 28 28 28 61 42 6f 74 2e |.....&& |(((aBot.|
|00003130| 45 6e 65 6d 79 2e 52 65 | 67 69 6f 6e 2e 5a 6f 6e |Enemy.Re|gion.Zon|
|00003140| 65 20 3d 3d 20 46 72 69 | 65 6e 64 6c 79 46 6c 61 |e == Fri|endlyFla|
|00003150| 67 2e 48 6f 6d 65 42 61 | 73 65 2e 52 65 67 69 6f |g.HomeBa|se.Regio|
|00003160| 6e 2e 5a 6f 6e 65 29 20 | 26 26 20 28 45 6e 65 6d |n.Zone) |&& (Enem|
|00003170| 79 46 6c 61 67 2e 48 6f | 6d 65 42 61 73 65 2e 52 |yFlag.Ho|meBase.R|
|00003180| 65 67 69 6f 6e 2e 5a 6f | 6e 65 20 21 3d 20 46 72 |egion.Zo|ne != Fr|
|00003190| 69 65 6e 64 6c 79 46 6c | 61 67 2e 48 6f 6d 65 42 |iendlyFl|ag.HomeB|
|000031a0| 61 73 65 2e 52 65 67 69 | 6f 6e 2e 5a 6f 6e 65 29 |ase.Regi|on.Zone)|
|000031b0| 29 20 0d 0a 09 09 09 09 | 09 7c 7c 20 28 56 53 69 |) ......|.|| (VSi|
|000031c0| 7a 65 28 61 42 6f 74 2e | 45 6e 65 6d 79 2e 4c 6f |ze(aBot.|Enemy.Lo|
|000031d0| 63 61 74 69 6f 6e 20 2d | 20 46 72 69 65 6e 64 6c |cation -| Friendl|
|000031e0| 79 46 6c 61 67 2e 48 6f | 6d 65 42 61 73 65 2e 4c |yFlag.Ho|meBase.L|
|000031f0| 6f 63 61 74 69 6f 6e 29 | 20 3c 20 30 2e 36 20 2a |ocation)| < 0.6 *|
|00003200| 20 56 53 69 7a 65 28 61 | 42 6f 74 2e 4c 6f 63 61 | VSize(a|Bot.Loca|
|00003210| 74 69 6f 6e 20 2d 20 45 | 6e 65 6d 79 46 6c 61 67 |tion - E|nemyFlag|
|00003220| 2e 48 6f 6d 65 42 61 73 | 65 2e 4c 6f 63 61 74 69 |.HomeBas|e.Locati|
|00003230| 6f 6e 29 29 29 20 29 0d | 0a 09 09 09 09 7b 0d 0a |on))) ).|.....{..|
|00003240| 09 09 09 09 09 61 42 6f | 74 2e 53 65 6e 64 54 65 |.....aBo|t.SendTe|
|00003250| 61 6d 4d 65 73 73 61 67 | 65 28 4e 6f 6e 65 2c 20 |amMessag|e(None, |
|00003260| 27 4f 54 48 45 52 27 2c | 20 31 34 2c 20 31 35 29 |'OTHER',| 14, 15)|
|00003270| 3b 20 2f 2f 22 49 6e 63 | 6f 6d 69 6e 67 21 22 0d |; //"Inc|oming!".|
|00003280| 0a 09 09 09 09 09 61 42 | 6f 74 2e 4f 72 64 65 72 |......aB|ot.Order|
|00003290| 73 20 3d 20 27 46 72 65 | 65 6c 61 6e 63 65 27 3b |s = 'Fre|elance';|
|000032a0| 0d 0a 09 09 09 09 09 72 | 65 74 75 72 6e 20 66 61 |.......r|eturn fa|
|000032b0| 6c 73 65 3b 0d 0a 09 09 | 09 09 7d 0d 0a 0d 0a 09 |lse;....|..}.....|
|000032c0| 09 09 69 66 20 28 20 45 | 6e 65 6d 79 46 6c 61 67 |..if ( E|nemyFlag|
|000032d0| 2e 62 48 6f 6d 65 20 29 | 0d 0a 09 09 09 09 46 69 |.bHome )|......Fi|
|000032e0| 6e 64 50 61 74 68 54 6f | 42 61 73 65 28 61 42 6f |ndPathTo|Base(aBo|
|000032f0| 74 2c 20 45 6e 65 6d 79 | 46 6c 61 67 2e 48 6f 6d |t, Enemy|Flag.Hom|
|00003300| 65 42 61 73 65 29 3b 0d | 0a 09 09 09 65 6c 73 65 |eBase);.|....else|
|00003310| 0d 0a 09 09 09 09 61 42 | 6f 74 2e 4d 6f 76 65 54 |......aB|ot.MoveT|
|00003320| 61 72 67 65 74 20 3d 20 | 61 42 6f 74 2e 46 69 6e |arget = |aBot.Fin|
|00003330| 64 50 61 74 68 54 6f 77 | 61 72 64 28 45 6e 65 6d |dPathTow|ard(Enem|
|00003340| 79 46 6c 61 67 29 3b 0d | 0a 09 09 09 69 66 20 28 |yFlag);.|....if (|
|00003350| 20 61 42 6f 74 2e 4d 6f | 76 65 54 61 72 67 65 74 | aBot.Mo|veTarget|
|00003360| 20 21 3d 20 4e 6f 6e 65 | 20 29 0d 0a 09 09 09 7b | != None| ).....{|
|00003370| 0d 0a 09 09 09 09 53 65 | 74 41 74 74 72 61 63 74 |......Se|tAttract|
|00003380| 69 6f 6e 53 74 61 74 65 | 46 6f 72 28 61 42 6f 74 |ionState|For(aBot|
|00003390| 29 3b 0d 0a 09 09 09 09 | 72 65 74 75 72 6e 20 74 |);......|return t|
|000033a0| 72 75 65 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 09 65 |rue;....|.}.....e|
|000033b0| 6c 73 65 0d 0a 09 09 09 | 7b 0d 0a 09 09 09 09 69 |lse.....|{......i|
|000033c0| 66 20 28 20 61 42 6f 74 | 2e 62 56 65 72 62 6f 73 |f ( aBot|.bVerbos|
|000033d0| 65 20 29 0d 0a 09 09 09 | 09 09 6c 6f 67 28 61 42 |e ).....|..log(aB|
|000033e0| 6f 74 24 22 20 6e 6f 20 | 70 61 74 68 20 74 6f 20 |ot$" no |path to |
|000033f0| 66 6c 61 67 22 29 3b 0d | 0a 09 09 09 09 72 65 74 |flag");.|.....ret|
|00003400| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 09 09 7d |urn fals|e;.....}|
|00003410| 0d 0a 09 09 7d 0d 0a 09 | 09 72 65 74 75 72 6e 20 |....}...|.return |
|00003420| 66 61 6c 73 65 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 69 |false;..|.}.....i|
|00003430| 66 20 28 20 28 62 4f 72 | 64 65 72 65 64 20 26 26 |f ( (bOr|dered &&|
|00003440| 20 21 61 42 6f 74 2e 4f | 72 64 65 72 4f 62 6a 65 | !aBot.O|rderObje|
|00003450| 63 74 2e 49 73 41 28 27 | 42 6f 74 27 29 29 20 7c |ct.IsA('|Bot')) ||
|00003460| 7c 20 28 61 42 6f 74 2e | 57 65 61 70 6f 6e 20 3d || (aBot.|Weapon =|
|00003470| 3d 20 4e 6f 6e 65 29 20 | 7c 7c 20 28 61 42 6f 74 |= None) ||| (aBot|
|00003480| 2e 57 65 61 70 6f 6e 2e | 41 49 52 61 74 69 6e 67 |.Weapon.|AIRating|
|00003490| 20 3c 20 30 2e 34 29 20 | 29 0d 0a 09 09 72 65 74 | < 0.4) |)....ret|
|000034a0| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 0d 0a 09 69 |urn fals|e;.....i|
|000034b0| 66 20 28 20 28 61 42 6f | 74 2e 45 6e 65 6d 79 20 |f ( (aBo|t.Enemy |
|000034c0| 3d 3d 20 4e 6f 6e 65 29 | 20 26 26 20 28 61 42 6f |== None)| && (aBo|
|000034d0| 74 2e 4f 72 64 65 72 73 | 20 21 3d 20 27 44 65 66 |t.Orders| != 'Def|
|000034e0| 65 6e 64 27 29 20 29 0d | 0a 09 7b 0d 0a 09 09 44 |end') ).|..{....D|
|000034f0| 69 73 74 20 3d 20 56 53 | 69 7a 65 28 61 42 6f 74 |ist = VS|ize(aBot|
|00003500| 2e 4c 6f 63 61 74 69 6f | 6e 20 2d 20 45 6e 65 6d |.Locatio|n - Enem|
|00003510| 79 46 6c 61 67 2e 48 6f | 6c 64 65 72 2e 4c 6f 63 |yFlag.Ho|lder.Loc|
|00003520| 61 74 69 6f 6e 29 3b 0d | 0a 09 09 69 66 20 28 20 |ation);.|...if ( |
|00003530| 28 44 69 73 74 20 3e 20 | 35 30 30 29 20 7c 7c 20 |(Dist > |500) || |
|00003540| 28 56 53 69 7a 65 28 45 | 6e 65 6d 79 46 6c 61 67 |(VSize(E|nemyFlag|
|00003550| 2e 48 6f 6c 64 65 72 2e | 56 65 6c 6f 63 69 74 79 |.Holder.|Velocity|
|00003560| 29 20 3e 20 32 33 30 29 | 0d 0a 09 09 09 7c 7c 20 |) > 230)|.....|| |
|00003570| 21 61 42 6f 74 2e 4c 69 | 6e 65 4f 66 53 69 67 68 |!aBot.Li|neOfSigh|
|00003580| 74 54 6f 28 45 6e 65 6d | 79 46 6c 61 67 2e 48 6f |tTo(Enem|yFlag.Ho|
|00003590| 6c 64 65 72 29 20 29 0d | 0a 09 09 7b 0d 0a 09 09 |lder) ).|...{....|
|000035a0| 09 61 42 6f 74 2e 4d 6f | 76 65 54 61 72 67 65 74 |.aBot.Mo|veTarget|
|000035b0| 20 3d 20 61 42 6f 74 2e | 46 69 6e 64 50 61 74 68 | = aBot.|FindPath|
|000035c0| 54 6f 77 61 72 64 28 45 | 6e 65 6d 79 46 6c 61 67 |Toward(E|nemyFlag|
|000035d0| 2e 48 6f 6c 64 65 72 29 | 3b 0d 0a 09 09 09 69 66 |.Holder)|;.....if|
|000035e0| 20 28 20 21 61 42 6f 74 | 2e 49 73 49 6e 53 74 61 | ( !aBot|.IsInSta|
|000035f0| 74 65 28 27 52 6f 61 6d | 69 6e 67 27 29 20 29 0d |te('Roam|ing') ).|
|00003600| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |....{...|...aBot.|
|00003610| 62 4e 6f 43 6c 65 61 72 | 53 70 65 63 69 61 6c 20 |bNoClear|Special |
|00003620| 3d 20 74 72 75 65 3b 0d | 0a 09 09 09 09 61 42 6f |= true;.|.....aBo|
|00003630| 74 2e 54 77 65 65 6e 54 | 6f 52 75 6e 6e 69 6e 67 |t.TweenT|oRunning|
|00003640| 28 30 2e 31 29 3b 0d 0a | 09 09 09 09 61 42 6f 74 |(0.1);..|....aBot|
|00003650| 2e 47 6f 74 6f 53 74 61 | 74 65 28 27 52 6f 61 6d |.GotoSta|te('Roam|
|00003660| 69 6e 67 27 2c 20 27 53 | 70 65 63 69 61 6c 4e 61 |ing', 'S|pecialNa|
|00003670| 76 69 67 27 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |vig');..|....retu|
|00003680| 72 6e 20 74 72 75 65 3b | 0d 0a 09 09 09 7d 0d 0a |rn true;|.....}..|
|00003690| 09 09 09 72 65 74 75 72 | 6e 20 28 61 42 6f 74 2e |...retur|n (aBot.|
|000036a0| 4d 6f 76 65 54 61 72 67 | 65 74 20 21 3d 20 4e 6f |MoveTarg|et != No|
|000036b0| 6e 65 29 3b 0d 0a 09 09 | 7d 0d 0a 09 09 65 6c 73 |ne);....|}....els|
|000036c0| 65 0d 0a 09 09 7b 0d 0a | 09 09 09 69 66 20 28 20 |e....{..|...if ( |
|000036d0| 21 61 42 6f 74 2e 62 49 | 6e 69 74 4c 69 66 65 4d |!aBot.bI|nitLifeM|
|000036e0| 65 73 73 61 67 65 20 29 | 0d 0a 09 09 09 7b 0d 0a |essage )|.....{..|
|000036f0| 09 09 09 09 61 42 6f 74 | 2e 62 49 6e 69 74 4c 69 |....aBot|.bInitLi|
|00003700| 66 65 4d 65 73 73 61 67 | 65 20 3d 20 74 72 75 65 |feMessag|e = true|
|00003710| 3b 0d 0a 09 09 09 09 61 | 42 6f 74 2e 53 65 6e 64 |;......a|Bot.Send|
|00003720| 54 65 61 6d 4d 65 73 73 | 61 67 65 28 45 6e 65 6d |TeamMess|age(Enem|
|00003730| 79 46 6c 61 67 2e 48 6f | 6c 64 65 72 2e 50 6c 61 |yFlag.Ho|lder.Pla|
|00003740| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003750| 66 6f 2c 20 27 4f 54 48 | 45 52 27 2c 20 33 2c 20 |fo, 'OTH|ER', 3, |
|00003760| 31 30 29 3b 0d 0a 09 09 | 09 7d 0d 0a 09 09 09 69 |10);....|.}.....i|
|00003770| 66 20 28 20 46 52 61 6e | 64 28 29 20 3c 20 30 2e |f ( FRan|d() < 0.|
|00003780| 33 35 20 29 0d 0a 09 09 | 09 09 61 42 6f 74 2e 47 |35 )....|..aBot.G|
|00003790| 6f 74 6f 53 74 61 74 65 | 28 27 57 61 6e 64 65 72 |otoState|('Wander|
|000037a0| 69 6e 67 27 29 3b 0d 0a | 09 09 09 65 6c 73 65 0d |ing');..|...else.|
|000037b0| 0a 09 09 09 7b 0d 0a 09 | 09 09 09 61 42 6f 74 2e |....{...|...aBot.|
|000037c0| 43 61 6d 70 54 69 6d 65 | 20 3d 20 31 2e 30 3b 0d |CampTime| = 1.0;.|
|000037d0| 0a 09 09 09 09 61 42 6f | 74 2e 62 43 61 6d 70 4f |.....aBo|t.bCampO|
|000037e0| 6e 6c 79 4f 6e 63 65 20 | 3d 20 74 72 75 65 3b 0d |nlyOnce |= true;.|
|000037f0| 0a 09 09 09 09 61 42 6f | 74 2e 47 6f 74 6f 53 74 |.....aBo|t.GotoSt|
|00003800| 61 74 65 28 27 52 6f 61 | 6d 69 6e 67 27 2c 20 27 |ate('Roa|ming', '|
|00003810| 43 61 6d 70 27 29 3b 0d | 0a 09 09 09 7d 0d 0a 09 |Camp');.|....}...|
|00003820| 09 09 72 65 74 75 72 6e | 20 74 72 75 65 3b 0d 0a |..return| true;..|
|00003830| 09 09 7d 0d 0a 09 7d 0d | 0a 09 72 65 74 75 72 6e |..}...}.|..return|
|00003840| 20 66 61 6c 73 65 3b 0d | 0a 7d 09 09 0d 0a 0d 0a | false;.|.}......|
|00003850| 66 75 6e 63 74 69 6f 6e | 20 62 6f 6f 6c 20 52 65 |function| bool Re|
|00003860| 73 74 61 72 74 50 6c 61 | 79 65 72 28 50 61 77 6e |startPla|yer(Pawn|
|00003870| 20 61 50 6c 61 79 65 72 | 29 0d 0a 7b 0d 0a 09 6c | aPlayer|)..{...l|
|00003880| 6f 63 61 6c 20 4e 61 76 | 69 67 61 74 69 6f 6e 50 |ocal Nav|igationP|
|00003890| 6f 69 6e 74 20 4e 3b 0d | 0a 09 6c 6f 63 61 6c 20 |oint N;.|..local |
|000038a0| 69 6e 74 20 6e 75 6d 3b | 0d 0a 09 6c 6f 63 61 6c |int num;|...local|
|000038b0| 20 66 6c 6f 61 74 20 74 | 6f 74 61 6c 57 65 69 67 | float t|otalWeig|
|000038c0| 68 74 2c 20 73 65 6c 65 | 63 74 69 6f 6e 2c 20 70 |ht, sele|ction, p|
|000038d0| 61 72 74 69 61 6c 57 65 | 69 67 68 74 3b 0d 0a 09 |artialWe|ight;...|
|000038e0| 6c 6f 63 61 6c 20 62 6f | 6f 6c 20 62 52 65 73 75 |local bo|ol bResu|
|000038f0| 6c 74 2c 20 62 50 6f 77 | 65 72 50 6c 61 79 3b 0d |lt, bPow|erPlay;.|
|00003900| 0a 09 6c 6f 63 61 6c 20 | 62 6f 74 20 42 3b 0d 0a |..local |bot B;..|
|00003910| 09 6c 6f 63 61 6c 20 50 | 61 77 6e 20 50 3b 0d 0a |.local P|awn P;..|
|00003920| 09 0d 0a 09 62 52 65 73 | 75 6c 74 20 3d 20 53 75 |....bRes|ult = Su|
|00003930| 70 65 72 2e 52 65 73 74 | 61 72 74 50 6c 61 79 65 |per.Rest|artPlaye|
|00003940| 72 28 61 50 6c 61 79 65 | 72 29 3b 0d 0a 0d 0a 09 |r(aPlaye|r);.....|
|00003950| 42 20 3d 20 42 6f 74 28 | 61 50 6c 61 79 65 72 29 |B = Bot(|aPlayer)|
|00003960| 3b 0d 0a 09 69 66 20 28 | 20 42 20 3d 3d 20 4e 6f |;...if (| B == No|
|00003970| 6e 65 20 29 0d 0a 09 09 | 72 65 74 75 72 6e 20 62 |ne )....|return b|
|00003980| 52 65 73 75 6c 74 3b 0d | 0a 0d 0a 09 42 2e 41 6c |Result;.|....B.Al|
|00003990| 74 65 72 6e 61 74 65 50 | 61 74 68 20 3d 20 4e 6f |ternateP|ath = No|
|000039a0| 6e 65 3b 0d 0a 09 0d 0a | 09 69 66 20 28 20 42 2e |ne;.....|.if ( B.|
|000039b0| 62 50 6f 77 65 72 50 6c | 61 79 20 7c 7c 20 28 42 |bPowerPl|ay || (B|
|000039c0| 6f 74 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |otReplic|ationInf|
|000039d0| 6f 28 42 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |o(B.Play|erReplic|
|000039e0| 61 74 69 6f 6e 49 6e 66 | 6f 29 2e 52 65 61 6c 4f |ationInf|o).RealO|
|000039f0| 72 64 65 72 73 20 3d 3d | 20 27 44 65 66 65 6e 64 |rders ==| 'Defend|
|00003a00| 27 29 20 29 0d 0a 09 7b | 0d 0a 09 09 2f 2f 20 69 |') )...{|....// i|
|00003a10| 66 20 62 6f 74 20 6f 6e | 6c 79 20 74 65 61 6d 20 |f bot on|ly team |
|00003a20| 61 6e 64 20 61 6c 72 65 | 61 64 79 20 6f 6e 65 20 |and alre|ady one |
|00003a30| 64 65 66 65 6e 64 65 72 | 2c 20 35 30 25 20 63 68 |defender|, 50% ch|
|00003a40| 61 6e 63 65 20 6f 66 20 | 70 6f 77 65 72 70 6c 61 |ance of |powerpla|
|00003a50| 79 20 66 6f 72 20 74 68 | 69 73 20 67 75 79 20 69 |y for th|is guy i|
|00003a60| 66 20 64 65 66 65 6e 64 | 65 72 0d 0a 09 09 69 66 |f defend|er....if|
|00003a70| 20 28 20 46 52 61 6e 64 | 28 29 20 3c 20 30 2e 35 | ( FRand|() < 0.5|
|00003a80| 20 29 0d 0a 09 09 7b 0d | 0a 09 09 09 42 2e 62 50 | )....{.|....B.bP|
|00003a90| 6f 77 65 72 50 6c 61 79 | 20 3d 20 66 61 6c 73 65 |owerPlay| = false|
|00003aa0| 3b 0d 0a 09 09 09 42 2e | 53 65 74 4f 72 64 65 72 |;.....B.|SetOrder|
|00003ab0| 73 28 27 44 65 66 65 6e | 64 27 2c 20 4e 6f 6e 65 |s('Defen|d', None|
|00003ac0| 2c 20 74 72 75 65 29 3b | 0d 0a 09 09 7d 0d 0a 09 |, true);|....}...|
|00003ad0| 09 65 6c 73 65 0d 0a 09 | 09 7b 0d 0a 09 09 09 2f |.else...|.{...../|
|00003ae0| 2f 20 63 68 65 63 6b 20 | 66 6f 72 20 62 6f 74 20 |/ check |for bot |
|00003af0| 6f 6e 6c 79 20 74 65 61 | 6d 20 61 6e 64 20 61 6c |only tea|m and al|
|00003b00| 72 65 61 64 79 20 61 20 | 76 61 6c 69 64 20 64 65 |ready a |valid de|
|00003b10| 66 65 6e 64 65 72 0d 0a | 09 09 09 66 6f 72 20 28 |fender..|...for (|
|00003b20| 20 50 3d 4c 65 76 65 6c | 2e 50 61 77 6e 4c 69 73 | P=Level|.PawnLis|
|00003b30| 74 3b 20 50 21 3d 4e 6f | 6e 65 3b 20 50 3d 50 2e |t; P!=No|ne; P=P.|
|00003b40| 4e 65 78 74 50 61 77 6e | 20 29 0d 0a 09 09 09 7b |NextPawn| ).....{|
|00003b50| 0d 0a 09 09 09 09 69 66 | 20 28 20 50 2e 62 49 73 |......if| ( P.bIs|
|00003b60| 50 6c 61 79 65 72 20 26 | 26 20 28 50 2e 50 6c 61 |Player &|& (P.Pla|
|00003b70| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003b80| 66 6f 2e 54 65 61 6d 20 | 3d 3d 20 42 2e 50 6c 61 |fo.Team |== B.Pla|
|00003b90| 79 65 72 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |yerRepli|cationIn|
|00003ba0| 66 6f 2e 54 65 61 6d 29 | 20 29 0d 0a 09 09 09 09 |fo.Team)| )......|
|00003bb0| 7b 0d 0a 09 09 09 09 09 | 69 66 20 28 20 50 2e 49 |{.......|if ( P.I|
|00003bc0| 73 41 28 27 50 6c 61 79 | 65 72 50 61 77 6e 27 29 |sA('Play|erPawn')|
|00003bd0| 20 29 0d 0a 09 09 09 09 | 09 7b 0d 0a 09 09 09 09 | )......|.{......|
|00003be0| 09 09 62 50 6f 77 65 72 | 50 6c 61 79 20 3d 20 66 |..bPower|Play = f|
|00003bf0| 61 6c 73 65 3b 0d 0a 09 | 09 09 09 09 09 62 72 65 |alse;...|.....bre|
|00003c00| 61 6b 3b 0d 0a 09 09 09 | 09 09 7d 0d 0a 09 09 09 |ak;.....|..}.....|
|00003c10| 09 09 65 6c 73 65 20 69 | 66 20 28 20 50 2e 49 73 |..else i|f ( P.Is|
|00003c20| 41 28 27 42 6f 74 27 29 | 20 26 26 20 28 42 6f 74 |A('Bot')| && (Bot|
|00003c30| 28 50 29 2e 4f 72 64 65 | 72 73 20 3d 3d 20 27 44 |(P).Orde|rs == 'D|
|00003c40| 65 66 65 6e 64 27 29 20 | 29 0d 0a 09 09 09 09 09 |efend') |).......|
|00003c50| 09 62 50 6f 77 65 72 50 | 6c 61 79 20 3d 20 74 72 |.bPowerP|lay = tr|
|00003c60| 75 65 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 7d |ue;.....|.}.....}|
|00003c70| 0d 0a 09 09 09 69 66 20 | 28 20 62 50 6f 77 65 72 |.....if |( bPower|
|00003c80| 50 6c 61 79 20 29 0d 0a | 09 09 09 7b 0d 0a 09 09 |Play )..|...{....|
|00003c90| 09 09 42 2e 62 50 6f 77 | 65 72 50 6c 61 79 20 3d |..B.bPow|erPlay =|
|00003ca0| 20 74 72 75 65 3b 0d 0a | 09 09 09 09 42 2e 53 65 | true;..|....B.Se|
|00003cb0| 74 4f 72 64 65 72 73 28 | 27 41 74 74 61 63 6b 27 |tOrders(|'Attack'|
|00003cc0| 2c 20 4e 6f 6e 65 2c 20 | 74 72 75 65 29 3b 0d 0a |, None, |true);..|
|00003cd0| 09 09 09 7d 0d 0a 09 09 | 7d 0d 0a 09 7d 0d 0a 0d |...}....|}...}...|
|00003ce0| 0a 09 69 66 20 28 20 42 | 6f 74 52 65 70 6c 69 63 |..if ( B|otReplic|
|00003cf0| 61 74 69 6f 6e 49 6e 66 | 6f 28 42 2e 50 6c 61 79 |ationInf|o(B.Play|
|00003d00| 65 72 52 65 70 6c 69 63 | 61 74 69 6f 6e 49 6e 66 |erReplic|ationInf|
|00003d10| 6f 29 2e 52 65 61 6c 4f | 72 64 65 72 73 20 21 3d |o).RealO|rders !=|
|00003d20| 20 27 41 74 74 61 63 6b | 27 20 29 0d 0a 09 09 72 | 'Attack|' )....r|
|00003d30| 65 74 75 72 6e 20 62 52 | 65 73 75 6c 74 3b 0d 0a |eturn bR|esult;..|
|00003d40| 0d 0a 09 69 66 20 28 20 | 46 52 61 6e 64 28 29 20 |...if ( |FRand() |
|00003d50| 3c 20 30 2e 37 35 20 29 | 0d 0a 09 7b 0d 0a 09 09 |< 0.75 )|...{....|
|00003d60| 66 6f 72 20 28 20 4e 3d | 4c 65 76 65 6c 2e 4e 61 |for ( N=|Level.Na|
|00003d70| 76 69 67 61 74 69 6f 6e | 50 6f 69 6e 74 4c 69 73 |vigation|PointLis|
|00003d80| 74 3b 20 4e 21 3d 4e 6f | 6e 65 3b 20 4e 3d 4e 2e |t; N!=No|ne; N=N.|
|00003d90| 6e 65 78 74 4e 61 76 69 | 67 61 74 69 6f 6e 50 6f |nextNavi|gationPo|
|00003da0| 69 6e 74 20 29 0d 0a 09 | 09 09 69 66 20 28 20 4e |int )...|..if ( N|
|00003db0| 2e 49 73 41 28 27 41 6c | 74 65 72 6e 61 74 65 50 |.IsA('Al|ternateP|
|00003dc0| 61 74 68 27 29 20 26 26 | 20 28 41 6c 74 65 72 6e |ath') &&| (Altern|
|00003dd0| 61 74 65 50 61 74 68 28 | 4e 29 2e 74 65 61 6d 20 |atePath(|N).team |
|00003de0| 21 3d 20 42 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |!= B.Pla|yerRepli|
|00003df0| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 74 65 61 6d 29 |cationIn|fo.team)|
|00003e00| 20 29 0d 0a 09 09 09 09 | 54 6f 74 61 6c 57 65 69 | )......|TotalWei|
|00003e10| 67 68 74 20 2b 3d 20 41 | 6c 74 65 72 6e 61 74 65 |ght += A|lternate|
|00003e20| 50 61 74 68 28 4e 29 2e | 53 65 6c 65 63 74 69 6f |Path(N).|Selectio|
|00003e30| 6e 57 65 69 67 68 74 3b | 0d 0a 09 09 73 65 6c 65 |nWeight;|....sele|
|00003e40| 63 74 69 6f 6e 20 3d 20 | 46 52 61 6e 64 28 29 20 |ction = |FRand() |
|00003e50| 2a 20 54 6f 74 61 6c 57 | 65 69 67 68 74 3b 0d 0a |* TotalW|eight;..|
|00003e60| 09 09 66 6f 72 20 28 20 | 4e 3d 4c 65 76 65 6c 2e |..for ( |N=Level.|
|00003e70| 4e 61 76 69 67 61 74 69 | 6f 6e 50 6f 69 6e 74 4c |Navigati|onPointL|
|00003e80| 69 73 74 3b 20 4e 21 3d | 4e 6f 6e 65 3b 20 4e 3d |ist; N!=|None; N=|
|00003e90| 4e 2e 6e 65 78 74 4e 61 | 76 69 67 61 74 69 6f 6e |N.nextNa|vigation|
|00003ea0| 50 6f 69 6e 74 20 29 0d | 0a 09 09 09 69 66 20 28 |Point ).|....if (|
|00003eb0| 20 4e 2e 49 73 41 28 27 | 41 6c 74 65 72 6e 61 74 | N.IsA('|Alternat|
|00003ec0| 65 50 61 74 68 27 29 20 | 26 26 20 28 41 6c 74 65 |ePath') |&& (Alte|
|00003ed0| 72 6e 61 74 65 50 61 74 | 68 28 4e 29 2e 74 65 61 |rnatePat|h(N).tea|
|00003ee0| 6d 20 21 3d 20 42 2e 50 | 6c 61 79 65 72 52 65 70 |m != B.P|layerRep|
|00003ef0| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 74 65 61 |lication|Info.tea|
|00003f00| 6d 29 20 29 0d 0a 09 09 | 09 7b 0d 0a 09 09 09 09 |m) )....|.{......|
|00003f10| 42 2e 41 6c 74 65 72 6e | 61 74 65 50 61 74 68 20 |B.Altern|atePath |
|00003f20| 3d 20 41 6c 74 65 72 6e | 61 74 65 50 61 74 68 28 |= Altern|atePath(|
|00003f30| 4e 29 3b 0d 0a 09 09 09 | 09 50 61 72 74 69 61 6c |N);.....|.Partial|
|00003f40| 57 65 69 67 68 74 20 2b | 3d 20 41 6c 74 65 72 6e |Weight +|= Altern|
|00003f50| 61 74 65 50 61 74 68 28 | 4e 29 2e 53 65 6c 65 63 |atePath(|N).Selec|
|00003f60| 74 69 6f 6e 57 65 69 67 | 68 74 3b 0d 0a 09 09 09 |tionWeig|ht;.....|
|00003f70| 09 69 66 20 28 20 50 61 | 72 74 69 61 6c 57 65 69 |.if ( Pa|rtialWei|
|00003f80| 67 68 74 20 3e 20 73 65 | 6c 65 63 74 69 6f 6e 20 |ght > se|lection |
|00003f90| 29 0d 0a 09 09 09 09 09 | 62 72 65 61 6b 3b 0d 0a |).......|break;..|
|00003fa0| 09 09 09 7d 0d 0a 09 7d | 0d 0a 09 72 65 74 75 72 |...}...}|...retur|
|00003fb0| 6e 20 62 52 65 73 75 6c | 74 3b 0d 0a 7d 0d 0a 0d |n bResul|t;..}...|
|00003fc0| 0a 66 75 6e 63 74 69 6f | 6e 20 53 65 74 42 6f 74 |.functio|n SetBot|
|00003fd0| 4f 72 64 65 72 73 28 42 | 6f 74 20 4e 65 77 42 6f |Orders(B|ot NewBo|
|00003fe0| 74 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 50 61 |t)..{...|local Pa|
|00003ff0| 77 6e 20 50 2c 20 4c 2c | 20 4d 3b 0d 0a 09 6c 6f |wn P, L,| M;...lo|
|00004000| 63 61 6c 20 69 6e 74 20 | 6e 75 6d 3b 0d 0a 09 6c |cal int |num;...l|
|00004010| 6f 63 61 6c 20 62 6f 6f | 6c 20 62 41 76 61 69 6c |ocal boo|l bAvail|
|00004020| 61 62 6c 65 3b 0d 0a 0d | 0a 09 69 66 20 28 20 43 |able;...|..if ( C|
|00004030| 75 72 72 65 6e 74 4f 72 | 64 65 72 73 5b 4e 65 77 |urrentOr|ders[New|
|00004040| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004050| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 20 |ationInf|o.Team] |
|00004060| 3d 3d 20 27 46 72 65 65 | 6c 61 6e 63 65 27 20 29 |== 'Free|lance' )|
|00004070| 0d 0a 09 09 43 75 72 72 | 65 6e 74 4f 72 64 65 72 |....Curr|entOrder|
|00004080| 73 5b 4e 65 77 42 6f 74 | 2e 50 6c 61 79 65 72 52 |s[NewBot|.PlayerR|
|00004090| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|000040a0| 65 61 6d 5d 20 3d 20 27 | 41 74 74 61 63 6b 27 3b |eam] = '|Attack';|
|000040b0| 0d 0a 09 65 6c 73 65 20 | 69 66 20 28 20 43 75 72 |...else |if ( Cur|
|000040c0| 72 65 6e 74 4f 72 64 65 | 72 73 5b 4e 65 77 42 6f |rentOrde|rs[NewBo|
|000040d0| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|000040e0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 5d 20 3d 3d |ionInfo.|Team] ==|
|000040f0| 20 27 44 65 66 65 6e 64 | 27 20 29 0d 0a 09 09 43 | 'Defend|' )....C|
|00004100| 75 72 72 65 6e 74 4f 72 | 64 65 72 73 5b 4e 65 77 |urrentOr|ders[New|
|00004110| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004120| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 20 |ationInf|o.Team] |
|00004130| 3d 20 27 46 72 65 65 6c | 61 6e 63 65 27 3b 0d 0a |= 'Freel|ance';..|
|00004140| 09 65 6c 73 65 20 0d 0a | 09 7b 0d 0a 09 09 43 75 |.else ..|.{....Cu|
|00004150| 72 72 65 6e 74 4f 72 64 | 65 72 73 5b 4e 65 77 42 |rrentOrd|ers[NewB|
|00004160| 6f 74 2e 50 6c 61 79 65 | 72 52 65 70 6c 69 63 61 |ot.Playe|rReplica|
|00004170| 74 69 6f 6e 49 6e 66 6f | 2e 54 65 61 6d 5d 20 3d |tionInfo|.Team] =|
|00004180| 20 27 44 65 66 65 6e 64 | 27 3b 09 09 0d 0a 09 09 | 'Defend|';......|
|00004190| 69 66 20 28 20 62 4e 6f | 76 69 63 65 4d 6f 64 65 |if ( bNo|viceMode|
|000041a0| 20 29 0d 0a 09 09 09 66 | 6f 72 20 28 20 50 3d 4c | ).....f|or ( P=L|
|000041b0| 65 76 65 6c 2e 50 61 77 | 6e 4c 69 73 74 3b 20 50 |evel.Paw|nList; P|
|000041c0| 21 3d 4e 6f 6e 65 3b 20 | 50 3d 20 50 2e 4e 65 78 |!=None; |P= P.Nex|
|000041d0| 74 50 61 77 6e 20 29 0d | 0a 09 09 09 09 69 66 20 |tPawn ).|.....if |
|000041e0| 28 20 50 2e 62 49 73 50 | 6c 61 79 65 72 20 26 26 |( P.bIsP|layer &&|
|000041f0| 20 28 50 20 21 3d 20 4e | 65 77 42 6f 74 29 20 26 | (P != N|ewBot) &|
|00004200| 26 20 28 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |& (P.Pla|yerRepli|
|00004210| 63 61 74 69 6f 6e 49 6e | 66 6f 2e 54 65 61 6d 20 |cationIn|fo.Team |
|00004220| 3d 3d 20 4e 65 77 42 6f | 74 2e 50 6c 61 79 65 72 |== NewBo|t.Player|
|00004230| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004240| 54 65 61 6d 29 0d 0a 09 | 09 09 09 09 26 26 20 50 |Team)...|....&& P|
|00004250| 2e 49 73 41 28 27 42 6f | 74 27 29 20 26 26 20 28 |.IsA('Bo|t') && (|
|00004260| 42 6f 74 52 65 70 6c 69 | 63 61 74 69 6f 6e 49 6e |BotRepli|cationIn|
|00004270| 66 6f 28 50 2e 50 6c 61 | 79 65 72 52 65 70 6c 69 |fo(P.Pla|yerRepli|
|00004280| 63 61 74 69 6f 6e 49 6e | 66 6f 29 2e 52 65 61 6c |cationIn|fo).Real|
|00004290| 4f 72 64 65 72 73 20 3d | 3d 20 27 44 65 66 65 6e |Orders =|= 'Defen|
|000042a0| 64 27 29 20 26 26 20 28 | 46 52 61 6e 64 28 29 20 |d') && (|FRand() |
|000042b0| 3c 20 30 2e 35 29 20 29 | 0d 0a 09 09 09 09 09 7b |< 0.5) )|.......{|
|000042c0| 09 0d 0a 09 09 09 09 09 | 09 43 75 72 72 65 6e 74 |........|.Current|
|000042d0| 4f 72 64 65 72 73 5b 4e | 65 77 42 6f 74 2e 50 6c |Orders[N|ewBot.Pl|
|000042e0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|000042f0| 6e 66 6f 2e 54 65 61 6d | 5d 20 3d 20 27 41 74 74 |nfo.Team|] = 'Att|
|00004300| 61 63 6b 27 3b 0d 0a 09 | 09 09 09 09 09 62 72 65 |ack';...|.....bre|
|00004310| 61 6b 3b 0d 0a 09 09 09 | 09 09 7d 0d 0a 09 7d 09 |ak;.....|..}...}.|
|00004320| 09 0d 0a 0d 0a 09 69 66 | 20 28 20 28 28 43 75 72 |......if| ( ((Cur|
|00004330| 72 65 6e 74 4f 72 64 65 | 72 73 5b 4e 65 77 42 6f |rentOrde|rs[NewBo|
|00004340| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|00004350| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 5d 20 3d 3d |ionInfo.|Team] ==|
|00004360| 20 27 41 74 74 61 63 6b | 27 29 20 7c 7c 20 28 43 | 'Attack|') || (C|
|00004370| 75 72 72 65 6e 74 4f 72 | 64 65 72 73 5b 4e 65 77 |urrentOr|ders[New|
|00004380| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004390| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 5d 20 |ationInf|o.Team] |
|000043a0| 3d 3d 20 27 46 72 65 65 | 6c 61 6e 63 65 27 29 29 |== 'Free|lance'))|
|000043b0| 09 0d 0a 09 09 26 26 20 | 28 4e 75 6d 53 75 70 70 |.....&& |(NumSupp|
|000043c0| 6f 72 74 69 6e 67 50 6c | 61 79 65 72 20 3d 3d 20 |ortingPl|ayer == |
|000043d0| 30 29 20 29 0d 0a 09 7b | 0d 0a 09 09 46 6f 72 20 |0) )...{|....For |
|000043e0| 28 20 50 3d 4c 65 76 65 | 6c 2e 50 61 77 6e 4c 69 |( P=Leve|l.PawnLi|
|000043f0| 73 74 3b 20 50 21 3d 4e | 6f 6e 65 3b 20 50 3d 50 |st; P!=N|one; P=P|
|00004400| 2e 4e 65 78 74 50 61 77 | 6e 20 29 0d 0a 09 09 09 |.NextPaw|n ).....|
|00004410| 69 66 20 28 20 50 2e 49 | 73 41 28 27 50 6c 61 79 |if ( P.I|sA('Play|
|00004420| 65 72 50 61 77 6e 27 29 | 20 26 26 20 28 50 2e 50 |erPawn')| && (P.P|
|00004430| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004440| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 3d 20 4e 65 77 |Info.Tea|m == New|
|00004450| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004460| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 29 0d |ationInf|o.Team).|
|00004470| 0a 09 09 09 09 26 26 20 | 21 50 2e 49 73 41 28 27 |.....&& |!P.IsA('|
|00004480| 53 70 65 63 74 61 74 6f | 72 27 29 20 29 0d 0a 09 |Spectato|r') )...|
|00004490| 09 7b 0d 0a 09 09 09 6e | 75 6d 2b 2b 3b 0d 0a 09 |.{.....n|um++;...|
|000044a0| 09 09 69 66 20 28 20 28 | 4c 20 3d 3d 20 4e 6f 6e |..if ( (|L == Non|
|000044b0| 65 29 20 7c 7c 20 28 46 | 52 61 6e 64 28 29 20 3c |e) || (F|Rand() <|
|000044c0| 20 31 2e 30 2f 66 6c 6f | 61 74 28 6e 75 6d 29 29 | 1.0/flo|at(num))|
|000044d0| 20 29 0d 0a 09 09 09 09 | 4c 20 3d 20 50 3b 0d 0a | )......|L = P;..|
|000044e0| 09 09 7d 0d 0a 0d 0a 09 | 09 69 66 20 28 20 4c 20 |..}.....|.if ( L |
|000044f0| 21 3d 20 4e 6f 6e 65 20 | 29 0d 0a 09 09 7b 0d 0a |!= None |)....{..|
|00004500| 09 09 09 4e 75 6d 53 75 | 70 70 6f 72 74 69 6e 67 |...NumSu|pporting|
|00004510| 50 6c 61 79 65 72 2b 2b | 3b 0d 0a 09 09 09 4e 65 |Player++|;.....Ne|
|00004520| 77 42 6f 74 2e 53 65 74 | 4f 72 64 65 72 73 28 27 |wBot.Set|Orders('|
|00004530| 46 6f 6c 6c 6f 77 27 2c | 4c 2c 20 74 72 75 65 29 |Follow',|L, true)|
|00004540| 3b 0d 0a 09 09 09 72 65 | 74 75 72 6e 3b 0d 0a 09 |;.....re|turn;...|
|00004550| 09 7d 0d 0a 09 09 65 6c | 73 65 20 69 66 20 28 20 |.}....el|se if ( |
|00004560| 46 52 61 6e 64 28 29 20 | 3c 20 30 2e 38 20 29 0d |FRand() |< 0.8 ).|
|00004570| 0a 09 09 7b 0d 0a 09 09 | 09 2f 2f 20 6e 6f 20 70 |...{....|.// no p|
|00004580| 6c 61 79 65 72 73 20 6f | 6e 20 74 68 69 73 20 74 |layers o|n this t|
|00004590| 65 61 6d 20 2d 20 70 6f | 73 73 69 62 6c 79 20 73 |eam - po|ssibly s|
|000045a0| 75 70 70 6f 72 74 20 6f | 74 68 65 72 20 62 6f 74 |upport o|ther bot|
|000045b0| 0d 0a 09 09 09 6e 75 6d | 20 3d 20 30 3b 0d 0a 09 |.....num| = 0;...|
|000045c0| 09 09 46 6f 72 20 28 20 | 50 3d 4c 65 76 65 6c 2e |..For ( |P=Level.|
|000045d0| 50 61 77 6e 4c 69 73 74 | 3b 20 50 21 3d 4e 6f 6e |PawnList|; P!=Non|
|000045e0| 65 3b 20 50 3d 50 2e 4e | 65 78 74 50 61 77 6e 20 |e; P=P.N|extPawn |
|000045f0| 29 0d 0a 09 09 09 09 69 | 66 20 28 20 50 2e 49 73 |)......i|f ( P.Is|
|00004600| 41 28 27 42 6f 74 27 29 | 20 26 26 20 28 50 2e 50 |A('Bot')| && (P.P|
|00004610| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004620| 49 6e 66 6f 2e 54 65 61 | 6d 20 3d 3d 20 4e 65 77 |Info.Tea|m == New|
|00004630| 42 6f 74 2e 50 6c 61 79 | 65 72 52 65 70 6c 69 63 |Bot.Play|erReplic|
|00004640| 61 74 69 6f 6e 49 6e 66 | 6f 2e 54 65 61 6d 29 20 |ationInf|o.Team) |
|00004650| 0d 0a 09 09 09 09 09 26 | 26 20 28 42 6f 74 28 50 |.......&|& (Bot(P|
|00004660| 29 2e 4f 72 64 65 72 73 | 20 3d 3d 20 27 41 74 74 |).Orders| == 'Att|
|00004670| 61 63 6b 27 29 20 29 0d | 0a 09 09 09 7b 0d 0a 09 |ack') ).|....{...|
|00004680| 09 09 09 6e 75 6d 2b 2b | 3b 0d 0a 09 09 09 09 69 |...num++|;......i|
|00004690| 66 20 28 20 28 4c 20 3d | 3d 20 4e 6f 6e 65 29 20 |f ( (L =|= None) |
|000046a0| 7c 7c 20 28 46 52 61 6e | 64 28 29 20 3c 20 31 2e ||| (FRan|d() < 1.|
|000046b0| 30 2f 66 6c 6f 61 74 28 | 6e 75 6d 29 29 20 29 0d |0/float(|num)) ).|
|000046c0| 0a 09 09 09 09 7b 0d 0a | 09 09 09 09 09 2f 2f 20 |.....{..|.....// |
|000046d0| 6d 61 6b 65 20 73 75 72 | 65 20 50 20 64 6f 65 73 |make sur|e P does|
|000046e0| 6e 27 74 20 61 6c 72 65 | 61 64 79 20 68 61 76 65 |n't alre|ady have|
|000046f0| 20 61 20 66 6f 6c 6c 6f | 77 65 72 0d 0a 09 09 09 | a follo|wer.....|
|00004700| 09 09 62 41 76 61 69 6c | 61 62 6c 65 20 3d 20 74 |..bAvail|able = t|
|00004710| 72 75 65 3b 0d 0a 09 09 | 09 09 09 66 6f 72 20 28 |rue;....|...for (|
|00004720| 20 4d 3d 4c 65 76 65 6c | 2e 50 61 77 6e 4c 69 73 | M=Level|.PawnLis|
|00004730| 74 3b 20 4d 21 3d 4e 6f | 6e 65 3b 20 4d 3d 4d 2e |t; M!=No|ne; M=M.|
|00004740| 4e 65 78 74 50 61 77 6e | 20 29 0d 0a 09 09 09 09 |NextPawn| )......|
|00004750| 09 09 69 66 20 28 20 4d | 2e 49 73 41 28 27 42 6f |..if ( M|.IsA('Bo|
|00004760| 74 27 29 20 26 26 20 28 | 4d 2e 50 6c 61 79 65 72 |t') && (|M.Player|
|00004770| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004780| 54 65 61 6d 20 3d 3d 20 | 4e 65 77 42 6f 74 2e 50 |Team == |NewBot.P|
|00004790| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|000047a0| 49 6e 66 6f 2e 54 65 61 | 6d 29 20 0d 0a 09 09 09 |Info.Tea|m) .....|
|000047b0| 09 09 09 09 26 26 20 28 | 42 6f 74 28 4d 29 2e 4f |....&& (|Bot(M).O|
|000047c0| 72 64 65 72 73 20 3d 3d | 20 27 46 6f 6c 6c 6f 77 |rders ==| 'Follow|
|000047d0| 27 29 20 26 26 20 28 42 | 6f 74 28 4d 29 2e 4f 72 |') && (B|ot(M).Or|
|000047e0| 64 65 72 4f 62 6a 65 63 | 74 20 3d 3d 20 50 29 20 |derObjec|t == P) |
|000047f0| 29 0d 0a 09 09 09 09 09 | 09 09 62 41 76 61 69 6c |).......|..bAvail|
|00004800| 61 62 6c 65 20 3d 20 66 | 61 6c 73 65 3b 0d 0a 09 |able = f|alse;...|
|00004810| 09 09 09 09 69 66 20 28 | 20 62 41 76 61 69 6c 61 |....if (| bAvaila|
|00004820| 62 6c 65 20 29 0d 0a 09 | 09 09 09 09 09 4c 20 3d |ble )...|.....L =|
|00004830| 20 50 3b 0d 0a 09 09 09 | 09 7d 0d 0a 09 09 09 7d | P;.....|.}.....}|
|00004840| 0d 0a 0d 0a 09 09 09 69 | 66 20 28 20 4c 20 21 3d |.......i|f ( L !=|
|00004850| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 09 7b 0d 0a 09 | None ).|....{...|
|00004860| 09 09 09 4e 65 77 42 6f | 74 2e 53 65 74 4f 72 64 |...NewBo|t.SetOrd|
|00004870| 65 72 73 28 27 46 6f 6c | 6c 6f 77 27 2c 4c 2c 20 |ers('Fol|low',L, |
|00004880| 74 72 75 65 29 3b 0d 0a | 09 09 09 09 72 65 74 75 |true);..|....retu|
|00004890| 72 6e 3b 0d 0a 09 09 09 | 7d 0d 0a 09 09 7d 0d 0a |rn;.....|}....}..|
|000048a0| 09 7d 0d 0a 09 0d 0a 09 | 69 66 20 28 20 43 75 72 |.}......|if ( Cur|
|000048b0| 72 65 6e 74 4f 72 64 65 | 72 73 5b 4e 65 77 42 6f |rentOrde|rs[NewBo|
|000048c0| 74 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |t.Player|Replicat|
|000048d0| 69 6f 6e 49 6e 66 6f 2e | 54 65 61 6d 5d 20 3d 3d |ionInfo.|Team] ==|
|000048e0| 20 27 46 72 65 65 6c 61 | 6e 63 65 27 20 29 0d 0a | 'Freela|nce' )..|
|000048f0| 09 09 4e 65 77 42 6f 74 | 2e 53 65 74 4f 72 64 65 |..NewBot|.SetOrde|
|00004900| 72 73 28 27 41 74 74 61 | 63 6b 27 2c 20 4e 6f 6e |rs('Atta|ck', Non|
|00004910| 65 2c 20 74 72 75 65 29 | 3b 0d 0a 09 65 6c 73 65 |e, true)|;...else|
|00004920| 09 0d 0a 09 09 4e 65 77 | 42 6f 74 2e 53 65 74 4f |.....New|Bot.SetO|
|00004930| 72 64 65 72 73 28 43 75 | 72 72 65 6e 74 4f 72 64 |rders(Cu|rrentOrd|
|00004940| 65 72 73 5b 4e 65 77 42 | 6f 74 2e 50 6c 61 79 65 |ers[NewB|ot.Playe|
|00004950| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|00004960| 2e 54 65 61 6d 5d 2c 20 | 4e 6f 6e 65 2c 20 74 72 |.Team], |None, tr|
|00004970| 75 65 29 3b 0d 0a 7d 0d | 0a 0d 0a 2f 2f 20 41 6c |ue);..}.|...// Al|
|00004980| 6c 6f 77 54 72 61 6e 73 | 6c 6f 63 61 74 69 6f 6e |lowTrans|location|
|00004990| 20 2d 20 72 65 74 75 72 | 6e 20 74 72 75 65 20 69 | - retur|n true i|
|000049a0| 66 20 4f 74 68 65 72 20 | 63 61 6e 20 74 65 6c 65 |f Other |can tele|
|000049b0| 70 6f 72 74 20 74 6f 20 | 44 65 73 74 0d 0a 66 75 |port to |Dest..fu|
|000049c0| 6e 63 74 69 6f 6e 20 62 | 6f 6f 6c 20 41 6c 6c 6f |nction b|ool Allo|
|000049d0| 77 54 72 61 6e 73 6c 6f | 63 61 74 69 6f 6e 28 50 |wTranslo|cation(P|
|000049e0| 61 77 6e 20 4f 74 68 65 | 72 2c 20 76 65 63 74 6f |awn Othe|r, vecto|
|000049f0| 72 20 44 65 73 74 20 29 | 0d 0a 7b 0d 0a 09 69 66 |r Dest )|..{...if|
|00004a00| 20 28 20 4f 74 68 65 72 | 2e 50 6c 61 79 65 72 52 | ( Other|.PlayerR|
|00004a10| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 48 |eplicati|onInfo.H|
|00004a20| 61 73 46 6c 61 67 20 21 | 3d 20 4e 6f 6e 65 20 29 |asFlag !|= None )|
|00004a30| 0d 0a 09 09 43 54 46 46 | 6c 61 67 28 4f 74 68 65 |....CTFF|lag(Othe|
|00004a40| 72 2e 50 6c 61 79 65 72 | 52 65 70 6c 69 63 61 74 |r.Player|Replicat|
|00004a50| 69 6f 6e 49 6e 66 6f 2e | 48 61 73 46 6c 61 67 29 |ionInfo.|HasFlag)|
|00004a60| 2e 44 72 6f 70 28 30 2e | 35 20 2a 20 4f 74 68 65 |.Drop(0.|5 * Othe|
|00004a70| 72 2e 56 65 6c 6f 63 69 | 74 79 29 3b 0d 0a 0d 0a |r.Veloci|ty);....|
|00004a80| 09 72 65 74 75 72 6e 20 | 74 72 75 65 3b 0d 0a 7d |.return |true;..}|
|00004a90| 0d 0a 0d 0a 2f 2f 20 53 | 68 6f 75 6c 64 54 72 61 |....// S|houldTra|
|00004aa0| 6e 73 6c 6f 63 61 74 65 | 20 2d 20 72 65 74 75 72 |nslocate| - retur|
|00004ab0| 6e 20 74 72 75 65 20 69 | 66 20 61 62 6f 74 20 73 |n true i|f abot s|
|00004ac0| 68 6f 75 6c 64 20 75 73 | 65 20 74 72 61 6e 73 6c |hould us|e transl|
|00004ad0| 6f 63 61 74 69 6f 6e 0d | 0a 66 75 6e 63 74 69 6f |ocation.|.functio|
|00004ae0| 6e 20 62 6f 6f 6c 20 43 | 61 6e 54 72 61 6e 73 6c |n bool C|anTransl|
|00004af0| 6f 63 61 74 65 28 42 6f | 74 20 61 42 6f 74 29 0d |ocate(Bo|t aBot).|
|00004b00| 0a 7b 0d 0a 09 69 66 20 | 28 20 61 42 6f 74 2e 50 |.{...if |( aBot.P|
|00004b10| 6c 61 79 65 72 52 65 70 | 6c 69 63 61 74 69 6f 6e |layerRep|lication|
|00004b20| 49 6e 66 6f 2e 48 61 73 | 46 6c 61 67 20 21 3d 20 |Info.Has|Flag != |
|00004b30| 4e 6f 6e 65 20 29 0d 0a | 09 09 72 65 74 75 72 6e |None )..|..return|
|00004b40| 20 66 61 6c 73 65 3b 0d | 0a 0d 0a 09 72 65 74 75 | false;.|....retu|
|00004b50| 72 6e 20 53 75 70 65 72 | 2e 43 61 6e 54 72 61 6e |rn Super|.CanTran|
|00004b60| 73 6c 6f 63 61 74 65 28 | 61 42 6f 74 29 3b 0d 0a |slocate(|aBot);..|
|00004b70| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 69 6e |}....fun|ction in|
|00004b80| 74 20 52 65 64 75 63 65 | 44 61 6d 61 67 65 28 69 |t Reduce|Damage(i|
|00004b90| 6e 74 20 44 61 6d 61 67 | 65 2c 20 6e 61 6d 65 20 |nt Damag|e, name |
|00004ba0| 44 61 6d 61 67 65 54 79 | 70 65 2c 20 70 61 77 6e |DamageTy|pe, pawn|
|00004bb0| 20 69 6e 6a 75 72 65 64 | 2c 20 70 61 77 6e 20 69 | injured|, pawn i|
|00004bc0| 6e 73 74 69 67 61 74 65 | 64 42 79 29 0d 0a 7b 0d |nstigate|dBy)..{.|
|00004bd0| 0a 09 69 66 20 28 20 28 | 69 6e 73 74 69 67 61 74 |..if ( (|instigat|
|00004be0| 65 64 42 79 20 21 3d 20 | 4e 6f 6e 65 29 20 0d 0a |edBy != |None) ..|
|00004bf0| 09 09 26 26 20 28 69 6e | 6a 75 72 65 64 2e 50 6c |..&& (in|jured.Pl|
|00004c00| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00004c10| 6e 66 6f 2e 54 65 61 6d | 20 21 3d 20 69 6e 73 74 |nfo.Team| != inst|
|00004c20| 69 67 61 74 65 64 42 79 | 2e 50 6c 61 79 65 72 52 |igatedBy|.PlayerR|
|00004c30| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 2e 54 |eplicati|onInfo.T|
|00004c40| 65 61 6d 29 0d 0a 09 09 | 26 26 20 69 6e 6a 75 72 |eam)....|&& injur|
|00004c50| 65 64 2e 49 73 41 28 27 | 42 6f 74 27 29 20 0d 0a |ed.IsA('|Bot') ..|
|00004c60| 09 09 26 26 20 28 28 69 | 6e 6a 75 72 65 64 2e 68 |..&& ((i|njured.h|
|00004c70| 65 61 6c 74 68 20 3c 20 | 33 35 29 20 7c 7c 20 28 |ealth < |35) || (|
|00004c80| 69 6e 6a 75 72 65 64 2e | 50 6c 61 79 65 72 52 65 |injured.|PlayerRe|
|00004c90| 70 6c 69 63 61 74 69 6f | 6e 49 6e 66 6f 2e 48 61 |plicatio|nInfo.Ha|
|00004ca0| 73 46 6c 61 67 20 21 3d | 20 4e 6f 6e 65 29 29 20 |sFlag !=| None)) |
|00004cb0| 29 0d 0a 09 09 09 42 6f | 74 28 69 6e 6a 75 72 65 |).....Bo|t(injure|
|00004cc0| 64 29 2e 53 65 6e 64 54 | 65 61 6d 4d 65 73 73 61 |d).SendT|eamMessa|
|00004cd0| 67 65 28 4e 6f 6e 65 2c | 20 27 4f 54 48 45 52 27 |ge(None,| 'OTHER'|
|00004ce0| 2c 20 34 2c 20 31 35 29 | 3b 0d 0a 0d 0a 09 72 65 |, 4, 15)|;.....re|
|00004cf0| 74 75 72 6e 20 53 75 70 | 65 72 2e 52 65 64 75 63 |turn Sup|er.Reduc|
|00004d00| 65 44 61 6d 61 67 65 28 | 44 61 6d 61 67 65 2c 20 |eDamage(|Damage, |
|00004d10| 44 61 6d 61 67 65 54 79 | 70 65 2c 20 69 6e 6a 75 |DamageTy|pe, inju|
|00004d20| 72 65 64 2c 20 69 6e 73 | 74 69 67 61 74 65 64 42 |red, ins|tigatedB|
|00004d30| 79 29 3b 0d 0a 7d 0d 0a | 0d 0a 66 75 6e 63 74 69 |y);..}..|..functi|
|00004d40| 6f 6e 20 62 79 74 65 20 | 50 72 69 6f 72 69 74 79 |on byte |Priority|
|00004d50| 4f 62 6a 65 63 74 69 76 | 65 28 42 6f 74 20 61 42 |Objectiv|e(Bot aB|
|00004d60| 6f 74 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 43 |ot)..{..|.local C|
|00004d70| 54 46 46 6c 61 67 20 46 | 72 69 65 6e 64 6c 79 46 |TFFlag F|riendlyF|
|00004d80| 6c 61 67 3b 0d 0a 0d 0a | 09 46 72 69 65 6e 64 6c |lag;....|.Friendl|
|00004d90| 79 46 6c 61 67 20 3d 20 | 43 54 46 52 65 70 6c 69 |yFlag = |CTFRepli|
|00004da0| 63 61 74 69 6f 6e 49 6e | 66 6f 28 47 61 6d 65 52 |cationIn|fo(GameR|
|00004db0| 65 70 6c 69 63 61 74 69 | 6f 6e 49 6e 66 6f 29 2e |eplicati|onInfo).|
|00004dc0| 46 6c 61 67 4c 69 73 74 | 5b 61 42 6f 74 2e 50 6c |FlagList|[aBot.Pl|
|00004dd0| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00004de0| 6e 66 6f 2e 54 65 61 6d | 5d 3b 20 0d 0a 0d 0a 09 |nfo.Team|]; .....|
|00004df0| 69 66 20 28 20 61 42 6f | 74 2e 50 6c 61 79 65 72 |if ( aBo|t.Player|
|00004e00| 52 65 70 6c 69 63 61 74 | 69 6f 6e 49 6e 66 6f 2e |Replicat|ionInfo.|
|00004e10| 48 61 73 46 6c 61 67 20 | 21 3d 20 4e 6f 6e 65 20 |HasFlag |!= None |
|00004e20| 29 0d 0a 09 7b 0d 0a 09 | 09 69 66 20 28 20 28 56 |)...{...|.if ( (V|
|00004e30| 53 69 7a 65 28 61 42 6f | 74 2e 4c 6f 63 61 74 69 |Size(aBo|t.Locati|
|00004e40| 6f 6e 20 2d 20 46 72 69 | 65 6e 64 6c 79 46 6c 61 |on - Fri|endlyFla|
|00004e50| 67 2e 48 6f 6d 65 42 61 | 73 65 2e 4c 6f 63 61 74 |g.HomeBa|se.Locat|
|00004e60| 69 6f 6e 29 20 3c 20 32 | 30 30 30 29 0d 0a 09 09 |ion) < 2|000)....|
|00004e70| 09 26 26 20 61 42 6f 74 | 2e 4c 69 6e 65 4f 66 53 |.&& aBot|.LineOfS|
|00004e80| 69 67 68 74 54 6f 28 46 | 72 69 65 6e 64 6c 79 46 |ightTo(F|riendlyF|
|00004e90| 6c 61 67 2e 48 6f 6d 65 | 42 61 73 65 29 20 29 0d |lag.Home|Base) ).|
|00004ea0| 0a 09 09 09 72 65 74 75 | 72 6e 20 32 35 35 3b 0d |....retu|rn 255;.|
|00004eb0| 0a 09 09 72 65 74 75 72 | 6e 20 32 3b 0d 0a 09 7d |...retur|n 2;...}|
|00004ec0| 0d 0a 0d 0a 09 69 66 20 | 28 20 46 72 69 65 6e 64 |.....if |( Friend|
|00004ed0| 6c 79 46 6c 61 67 2e 48 | 6f 6c 64 65 72 20 21 3d |lyFlag.H|older !=|
|00004ee0| 20 4e 6f 6e 65 20 29 0d | 0a 09 09 72 65 74 75 72 | None ).|...retur|
|00004ef0| 6e 20 31 3b 0d 0a 0d 0a | 09 72 65 74 75 72 6e 20 |n 1;....|.return |
|00004f00| 30 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |0;..}...|.functio|
|00004f10| 6e 20 50 69 63 6b 41 6d | 62 75 73 68 53 70 6f 74 |n PickAm|bushSpot|
|00004f20| 46 6f 72 28 42 6f 74 20 | 61 42 6f 74 29 0d 0a 7b |For(Bot |aBot)..{|
|00004f30| 0d 0a 09 69 66 20 28 20 | 43 68 65 63 6b 46 6f 72 |...if ( |CheckFor|
|00004f40| 54 72 61 6e 73 6c 6f 63 | 61 74 6f 72 73 28 61 42 |Transloc|ators(aB|
|00004f50| 6f 74 29 20 29 0d 0a 09 | 7b 0d 0a 09 09 61 42 6f |ot) )...|{....aBo|
|00004f60| 74 2e 62 53 70 65 63 69 | 61 6c 41 6d 62 75 73 68 |t.bSpeci|alAmbush|
|00004f70| 20 3d 20 74 72 75 65 3b | 0d 0a 09 09 72 65 74 75 | = true;|....retu|
|00004f80| 72 6e 3b 0d 0a 09 7d 0d | 0a 09 53 75 70 65 72 2e |rn;...}.|..Super.|
|00004f90| 50 69 63 6b 41 6d 62 75 | 73 68 53 70 6f 74 46 6f |PickAmbu|shSpotFo|
|00004fa0| 72 28 61 42 6f 74 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 |r(aBot);|..}....f|
|00004fb0| 75 6e 63 74 69 6f 6e 20 | 62 6f 6f 6c 20 43 68 65 |unction |bool Che|
|00004fc0| 63 6b 46 6f 72 54 72 61 | 6e 73 6c 6f 63 61 74 6f |ckForTra|nslocato|
|00004fd0| 72 73 28 42 6f 74 20 61 | 42 6f 74 29 0d 0a 7b 0d |rs(Bot a|Bot)..{.|
|00004fe0| 0a 09 6c 6f 63 61 6c 20 | 54 72 61 6e 73 6c 6f 63 |..local |Transloc|
|00004ff0| 61 74 6f 72 54 61 72 67 | 65 74 20 54 3b 0d 0a 0d |atorTarg|et T;...|
|00005000| 0a 09 2f 2f 20 63 68 65 | 63 6b 20 66 6f 72 20 74 |..// che|ck for t|
|00005010| 72 61 6e 73 6c 6f 63 61 | 74 6f 72 73 20 6e 65 61 |ransloca|tors nea|
|00005020| 72 20 62 61 73 65 0d 0a | 09 46 6f 72 45 61 63 68 |r base..|.ForEach|
|00005030| 20 41 6c 6c 41 63 74 6f | 72 73 28 63 6c 61 73 73 | AllActo|rs(class|
|00005040| 27 54 72 61 6e 73 6c 6f | 63 61 74 6f 72 54 61 72 |'Translo|catorTar|
|00005050| 67 65 74 27 2c 20 54 29 | 0d 0a 09 09 69 66 20 28 |get', T)|....if (|
|00005060| 20 43 68 65 63 6b 54 68 | 69 73 54 72 61 6e 73 6c | CheckTh|isTransl|
|00005070| 6f 63 61 74 6f 72 28 61 | 42 6f 74 2c 20 54 29 20 |ocator(a|Bot, T) |
|00005080| 29 0d 0a 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |).....re|turn tru|
|00005090| 65 3b 0d 0a 0d 0a 09 72 | 65 74 75 72 6e 20 66 61 |e;.....r|eturn fa|
|000050a0| 6c 73 65 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |lse;..}.|...funct|
|000050b0| 69 6f 6e 20 62 6f 6f 6c | 20 43 68 65 63 6b 54 68 |ion bool| CheckTh|
|000050c0| 69 73 54 72 61 6e 73 6c | 6f 63 61 74 6f 72 28 42 |isTransl|ocator(B|
|000050d0| 6f 74 20 61 42 6f 74 2c | 20 54 72 61 6e 73 6c 6f |ot aBot,| Translo|
|000050e0| 63 61 74 6f 72 54 61 72 | 67 65 74 20 54 29 0d 0a |catorTar|get T)..|
|000050f0| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 46 6c 61 67 42 61 |{...loca|l FlagBa|
|00005100| 73 65 20 46 3b 0d 0a 0d | 0a 09 69 66 20 28 20 61 |se F;...|..if ( a|
|00005110| 42 6f 74 2e 57 65 61 70 | 6f 6e 2e 62 4d 65 6c 65 |Bot.Weap|on.bMele|
|00005120| 65 57 65 61 70 6f 6e 20 | 29 0d 0a 09 09 72 65 74 |eWeapon |)....ret|
|00005130| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 0a 09 46 20 3d |urn fals|e;...F =|
|00005140| 20 43 54 46 52 65 70 6c | 69 63 61 74 69 6f 6e 49 | CTFRepl|icationI|
|00005150| 6e 66 6f 28 47 61 6d 65 | 52 65 70 6c 69 63 61 74 |nfo(Game|Replicat|
|00005160| 69 6f 6e 49 6e 66 6f 29 | 2e 46 6c 61 67 4c 69 73 |ionInfo)|.FlagLis|
|00005170| 74 5b 61 42 6f 74 2e 50 | 6c 61 79 65 72 52 65 70 |t[aBot.P|layerRep|
|00005180| 6c 69 63 61 74 69 6f 6e | 49 6e 66 6f 2e 54 65 61 |lication|Info.Tea|
|00005190| 6d 5d 2e 48 6f 6d 65 42 | 61 73 65 3b 0d 0a 0d 0a |m].HomeB|ase;....|
|000051a0| 09 69 66 20 28 20 28 54 | 2e 52 65 67 69 6f 6e 2e |.if ( (T|.Region.|
|000051b0| 5a 6f 6e 65 20 3d 3d 20 | 46 2e 52 65 67 69 6f 6e |Zone == |F.Region|
|000051c0| 2e 5a 6f 6e 65 29 0d 0a | 09 09 26 26 20 28 54 2e |.Zone)..|..&& (T.|
|000051d0| 49 6e 73 74 69 67 61 74 | 6f 72 2e 50 6c 61 79 65 |Instigat|or.Playe|
|000051e0| 72 52 65 70 6c 69 63 61 | 74 69 6f 6e 49 6e 66 6f |rReplica|tionInfo|
|000051f0| 2e 54 65 61 6d 20 21 3d | 20 61 42 6f 74 2e 50 6c |.Team !=| aBot.Pl|
|00005200| 61 79 65 72 52 65 70 6c | 69 63 61 74 69 6f 6e 49 |ayerRepl|icationI|
|00005210| 6e 66 6f 2e 54 65 61 6d | 29 0d 0a 09 09 26 26 20 |nfo.Team|)....&& |
|00005220| 21 54 2e 44 69 73 72 75 | 70 74 65 64 28 29 0d 0a |!T.Disru|pted()..|
|00005230| 09 09 26 26 20 28 56 53 | 69 7a 65 28 54 2e 4c 6f |..&& (VS|ize(T.Lo|
|00005240| 63 61 74 69 6f 6e 20 2d | 20 46 2e 4c 6f 63 61 74 |cation -| F.Locat|
|00005250| 69 6f 6e 29 20 3c 20 31 | 30 30 30 29 20 29 0d 0a |ion) < 1|000) )..|
|00005260| 09 7b 0d 0a 09 09 69 66 | 20 28 20 28 56 53 69 7a |.{....if| ( (VSiz|
|00005270| 65 28 61 42 6f 74 2e 4c | 6f 63 61 74 69 6f 6e 20 |e(aBot.L|ocation |
|00005280| 2d 20 54 2e 4c 6f 63 61 | 74 69 6f 6e 29 20 3c 20 |- T.Loca|tion) < |
|00005290| 38 35 30 29 0d 0a 09 09 | 09 09 26 26 20 61 42 6f |850)....|..&& aBo|
|000052a0| 74 2e 4c 69 6e 65 4f 66 | 53 69 67 68 74 54 6f 28 |t.LineOf|SightTo(|
|000052b0| 54 29 20 29 0d 0a 09 09 | 7b 0d 0a 09 09 09 61 42 |T) )....|{.....aB|
|000052c0| 6f 74 2e 41 6d 62 75 73 | 68 53 70 6f 74 20 3d 20 |ot.Ambus|hSpot = |
|000052d0| 4e 6f 6e 65 3b 0d 0a 09 | 09 09 61 42 6f 74 2e 53 |None;...|..aBot.S|
|000052e0| 68 6f 6f 74 54 61 72 67 | 65 74 28 54 29 3b 0d 0a |hootTarg|et(T);..|
|000052f0| 09 09 09 72 65 74 75 72 | 6e 20 74 72 75 65 3b 0d |...retur|n true;.|
|00005300| 0a 09 09 7d 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |...}....|else....|
|00005310| 7b 0d 0a 09 09 09 61 42 | 6f 74 2e 4d 6f 76 65 54 |{.....aB|ot.MoveT|
|00005320| 61 72 67 65 74 20 3d 20 | 61 42 6f 74 2e 46 69 6e |arget = |aBot.Fin|
|00005330| 64 50 61 74 68 54 6f 77 | 61 72 64 28 54 29 3b 0d |dPathTow|ard(T);.|
|00005340| 0a 09 09 09 69 66 20 28 | 20 61 42 6f 74 2e 4d 6f |....if (| aBot.Mo|
|00005350| 76 65 54 61 72 67 65 74 | 20 21 3d 20 4e 6f 6e 65 |veTarget| != None|
|00005360| 20 29 0d 0a 09 09 09 7b | 0d 0a 09 09 09 09 69 66 | ).....{|......if|
|00005370| 20 28 20 56 53 69 7a 65 | 28 61 42 6f 74 2e 4c 6f | ( VSize|(aBot.Lo|
|00005380| 63 61 74 69 6f 6e 20 2d | 20 61 42 6f 74 2e 4d 6f |cation -| aBot.Mo|
|00005390| 76 65 54 61 72 67 65 74 | 2e 4c 6f 63 61 74 69 6f |veTarget|.Locatio|
|000053a0| 6e 29 20 3c 20 31 2e 35 | 20 2a 20 61 42 6f 74 2e |n) < 1.5| * aBot.|
|000053b0| 43 6f 6c 6c 69 73 69 6f | 6e 52 61 64 69 75 73 20 |Collisio|nRadius |
|000053c0| 29 0d 0a 09 09 09 09 7b | 0d 0a 09 09 09 09 09 61 |)......{|.......a|
|000053d0| 42 6f 74 2e 43 61 6d 70 | 54 69 6d 65 20 3d 20 33 |Bot.Camp|Time = 3|
|000053e0| 2e 30 3b 0d 0a 09 09 09 | 09 09 61 42 6f 74 2e 47 |.0;.....|..aBot.G|
|000053f0| 6f 74 6f 53 74 61 74 65 | 28 27 52 6f 61 6d 69 6e |otoState|('Roamin|
|00005400| 67 27 2c 20 27 43 61 6d | 70 27 29 3b 0d 0a 09 09 |g', 'Cam|p');....|
|00005410| 09 09 7d 0d 0a 09 09 09 | 09 61 42 6f 74 2e 41 6d |..}.....|.aBot.Am|
|00005420| 62 75 73 68 53 70 6f 74 | 20 3d 20 4e 6f 6e 65 3b |bushSpot| = None;|
|00005430| 0d 0a 09 09 09 09 72 65 | 74 75 72 6e 20 74 72 75 |......re|turn tru|
|00005440| 65 3b 0d 0a 09 09 09 7d | 0d 0a 09 09 7d 0d 0a 09 |e;.....}|....}...|
|00005450| 7d 0d 0a 09 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |}...retu|rn false|
|00005460| 3b 0d 0a 7d 0d 0a 0d 0a | 00 |;..}....|. |
+--------+-------------------------+-------------------------+--------+--------+